[gen] Bugfixes; for Ref field, replaced render mode 'titles' with 'minimal', allowing to display all fields defined in shownInfo.
This commit is contained in:
parent
57bab29447
commit
b3a72ade24
4 changed files with 17 additions and 18 deletions
|
@ -419,7 +419,7 @@ class ToolMixin(BaseMixin):
|
|||
def quote(self, s):
|
||||
'''Returns the quoted version of p_s.'''
|
||||
if not isinstance(s, basestring): s = str(s)
|
||||
s = s.replace('\r\n', '').replace('\n', '').replace("'", "\\'")
|
||||
s = s.replace('\r\n', '').replace('\n', '').replace("'", "'")
|
||||
return "'%s'" % s
|
||||
|
||||
def getLayoutType(self):
|
||||
|
@ -962,7 +962,7 @@ class ToolMixin(BaseMixin):
|
|||
# c. Identify the user from the authentication form.
|
||||
if not login:
|
||||
login = req.get('__ac_name', None)
|
||||
password = req.get('__ac_password', None)
|
||||
password = req.get('__ac_password', '')
|
||||
# Stop identification here if we don't need to return a special user
|
||||
if not alsoSpecial: return login, password
|
||||
# d. All the identification methods failed. So identify the user as
|
||||
|
|
|
@ -324,12 +324,6 @@ class BaseMixin:
|
|||
self.say(self.translate('action_done'))
|
||||
self.goto(urlBack)
|
||||
|
||||
def onCreateWithoutForm(self):
|
||||
'''This method is called when a user wants to create a object from a
|
||||
reference field, automatically (without displaying a form).'''
|
||||
rq = self.REQUEST
|
||||
self.appy().create(rq['fieldName'])
|
||||
|
||||
def intraFieldValidation(self, errors, values):
|
||||
'''This method performs field-specific validation for every field from
|
||||
the page that is being created or edited. For every field whose
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue