remporarily addressing issue #1203, thanks Simone
This commit is contained in:
Vendored
+1
-1
@@ -98,7 +98,7 @@ def git_deploy(appname, repo):
|
|||||||
with cd(applications):
|
with cd(applications):
|
||||||
sudo('git clone git@github.com/%s %s' % (repo, name))
|
sudo('git clone git@github.com/%s %s' % (repo, name))
|
||||||
sudo('chown -R www-data:www-data %s' % name)
|
sudo('chown -R www-data:www-data %s' % name)
|
||||||
|
|
||||||
def retrieve(appname=None):
|
def retrieve(appname=None):
|
||||||
"""fab -H username@host retrieve:appname"""
|
"""fab -H username@host retrieve:appname"""
|
||||||
appname = appname or os.path.split(os.getcwd())[-1]
|
appname = appname or os.path.split(os.getcwd())[-1]
|
||||||
|
|||||||
+1
-1
Submodule gluon/packages/dal updated: 0515e3b392...4b37722a22
+5
-6
@@ -633,12 +633,11 @@ class IS_IN_DB(Validator):
|
|||||||
if self.field.type in ('id','integer'):
|
if self.field.type in ('id','integer'):
|
||||||
new_values = []
|
new_values = []
|
||||||
for value in values:
|
for value in values:
|
||||||
if isinstance(value,(int,long)) or value.isdigit():
|
if not (isinstance(value,(int,long)) or value.isdigit()):
|
||||||
value = int(value)
|
if self.auto_add:
|
||||||
elif self.auto_add:
|
value = str(self.maybe_add(table, self.fieldnames[0], value))
|
||||||
value = self.maybe_add(table, self.fieldnames[0], value)
|
else:
|
||||||
else:
|
return (values, translate(self.error_message))
|
||||||
return (values, translate(self.error_message))
|
|
||||||
new_values.append(value)
|
new_values.append(value)
|
||||||
values = new_values
|
values = new_values
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user