File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -544,7 +544,9 @@ def model(self):
544544 readable = False ,
545545 writable = False ,
546546 default = False ),
547- Field ("first_name" , notnull = True ,
547+ Field ("first_name" ,
548+ notnull = True ,
549+ default = "?" ,
548550 length = 64 , # Mayon Compatibility
549551 # NB Not possible to have an IS_NAME() validator here
550552 # http://eden.sahanafoundation.org/ticket/834
Original file line number Diff line number Diff line change @@ -2726,14 +2726,14 @@ def add_item(self,
27262726 components = model .get_components (table , names = components )
27272727 for alias in components :
27282728 component = components [alias ]
2729- if component .link :
2730- target = component .link
2731- else :
2732- target = component
2733- ctable = component .table
2734- ctablename = component .tablename
27352729 pkey = component .pkey
2736- fkey = component .fkey
2730+ if component .linktable :
2731+ ctable = component .linktable
2732+ fkey = component .lkey
2733+ else :
2734+ ctable = component .table
2735+ fkey = component .fkey
2736+ ctablename = ctable ._tablename
27372737
27382738 celements = xml .select_resources (element , ctablename )
27392739 if celements :
@@ -2905,7 +2905,7 @@ def lookahead(self,
29052905 if directory is not None :
29062906 entry = directory .get ((tablename , attr , uid ), None )
29072907 if not entry :
2908- expr = ' .//%s[@%s="%s" and @%s="%s"]' % (
2908+ expr = " .//%s[@%s='%s' and @%s='%s']" % (
29092909 xml .TAG .resource ,
29102910 xml .ATTRIBUTE .name ,
29112911 tablename ,
You can’t perform that action at this time.
0 commit comments