Vote count: 0 from django.db.models.signals import post_save from django.dispatch import receiver class Coector(models.Model): coector_id = models.AutoField(primary_key = True) name = models.CharField(max_length=255, null=False,unique=True) description = models.TextField(null=True) class CoectorAud(models.Model): id = models.AutoField(primary_key = True) ref_coector_id = models.CharField(max_length=255, null=False) name = models.CharField(max_length=255, null=False,unique=True) description = models.TextField(null=True) @receiver(post_save, sender=Coector) def create_coector_audit_trail(sender, **kwargs): coector = CoectorAud( ref_coector_id = kwargs.get('coector_id'), name = kwargs.get('name...
ادامه مطلبVote count: 0 I am reading an excel file using xlrd. Doing some macro replacing and then writing thru xlsxwriter. Without reading and copying formatting info the code works but when I add formatting info I get an error (at the bottom) The code snippet is below..I read a xls file, for each data row I replace token macros with the values and write back. when I try to close the output_workbook I get an error filePath = os.path.realpath(os.path.join(inputPath,filename)) input_workbook = open_workbook(filePath, formatting_info=True) input_DataSheet = input_workbook.sheet_by_index(0) data = [[input_DataSheet.cell_value(r,c) for c in range(input_DataSheet.ncols)] for r in range(input_DataSheet.nrow...
ادامه مطلبVote count: 0 Hello all I'm trying to use Expanding Collections library for the development of my app, but I'm having a hard time following the instructions on how to set it up. I have installed the library via Pod, but I'm confused on how to link up the .xib file with the BasePageCollectionCell. Would anyone be kind enough to give me some more detailed instructions as there aren't any example projects provided. asked 1 min agoYellowPillow Let's block ads! بخوانید...
ادامه مطلبVote count: 0 i'm using mvc patte in asp.net - c#. In my application I use jquery.blockUI to block user interface while the page is loading. First, I implement this in forms, like this: wait.js: $('#form').on("submit", function(){ $.blockUI({message:null}); }); View: @using (Html.BeginForm("Create","Caterings", FormMethod.Post, new { @id = "form"})) { .... Now i'm trying implement similar solution but using simple @Html.ActionLink and i can't get it. I used javascript with ajax but i think ajax isn't for this purpose, because my objective is redirect all the page to another view. in actionlink I use: @Html.ActionLink("Costos Unitarios", "Edit", "CostosFijosUnitarios", new { @onClick= "Rediri...
ادامه مطلب