Improved class appy.Hack to be able to hack static methods as well; [gen] pod field can now accept a string in param 'showTemplate' if a single format is accepted; when showing linked objects in a ref field, we show a message and no data for every object the currently logged user is not allowed to read; improved the default UI layout (less table borders).

This commit is contained in:
Gaetan Delannay 2014-05-03 15:18:41 +02:00
parent 0a174098f1
commit b2dbef2bc4
16 changed files with 79 additions and 22 deletions

View file

@ -710,3 +710,7 @@ msgstr ""
#. Default: "In some situations, by leaving this page this way, you may lose encoded data or prevent other users from editing it afterwards. Please use buttons instead."
msgid "warn_leave_form"
msgstr ""
#. Default: "You are not allowed to consult this."
msgid "unauthorized"
msgstr ""

View file

@ -710,3 +710,7 @@ msgstr ""
#. Default: "In some situations, by leaving this page this way, you may lose encoded data or prevent other users from editing it afterwards. Please use buttons instead."
msgid "warn_leave_form"
msgstr ""
#. Default: "You are not allowed to consult this."
msgid "unauthorized"
msgstr ""

View file

@ -710,3 +710,7 @@ msgstr ""
#. Default: "In some situations, by leaving this page this way, you may lose encoded data or prevent other users from editing it afterwards. Please use buttons instead."
msgid "warn_leave_form"
msgstr ""
#. Default: "You are not allowed to consult this."
msgid "unauthorized"
msgstr ""

View file

@ -711,3 +711,7 @@ msgstr "${date} - This page is locked by ${user}."
#. Default: "In some situations, by leaving this page this way, you may lose encoded data or prevent other users from editing it afterwards. Please use buttons instead."
msgid "warn_leave_form"
msgstr "In some situations, by leaving this page this way, you may lose encoded data or prevent other users from editing it afterwards. Please use buttons instead."
#. Default: "You are not allowed to consult this."
msgid "unauthorized"
msgstr "You are not allowed to consult this."

View file

@ -710,3 +710,7 @@ msgstr ""
#. Default: "In some situations, by leaving this page this way, you may lose encoded data or prevent other users from editing it afterwards. Please use buttons instead."
msgid "warn_leave_form"
msgstr ""
#. Default: "You are not allowed to consult this."
msgid "unauthorized"
msgstr ""

View file

@ -711,3 +711,7 @@ msgstr "${date} - Cette page est verrouillée par ${user}."
#. Default: "In some situations, by leaving this page this way, you may lose encoded data or prevent other users from editing it afterwards. Please use buttons instead."
msgid "warn_leave_form"
msgstr "Dans certaines situations, en quittant cette page de cette manière, vous pouvez perdre les données encodées ou empêcher d'autres utilisateurs de les éditer par la suite. Veuillez utilisez les boutons ad hoc."
#. Default: "You are not allowed to consult this."
msgid "unauthorized"
msgstr "Vous n'êtes pas autorisé à consulter ceci."

View file

@ -710,3 +710,7 @@ msgstr ""
#. Default: "In some situations, by leaving this page this way, you may lose encoded data or prevent other users from editing it afterwards. Please use buttons instead."
msgid "warn_leave_form"
msgstr ""
#. Default: "You are not allowed to consult this."
msgid "unauthorized"
msgstr ""

View file

@ -710,3 +710,7 @@ msgstr ""
#. Default: "In some situations, by leaving this page this way, you may lose encoded data or prevent other users from editing it afterwards. Please use buttons instead."
msgid "warn_leave_form"
msgstr ""
#. Default: "You are not allowed to consult this."
msgid "unauthorized"
msgstr ""

View file

@ -52,8 +52,7 @@ img { border: 0; vertical-align: middle }
.xhtml p { margin: 3px 0 7px 0 }
.clickable { cursor: pointer }
.refLink { font-style: italic; padding-left: 5px; font-size: 90%; color: grey }
.main { width: 900px; height: 95%; box-shadow: 3px 3px 3px #A9A9A9;
border-style: solid; border-width: 1px; border-color: grey}
.main { width: 900px; height: 95%; box-shadow: 3px 3px 3px #A9A9A9 }
.top { height: 89px; margin-left: 3em; vertical-align: top;
background-color: white }
.lang { margin-right: 6px }

View file

@ -1,2 +1,2 @@
body { margin: 0 }
.main {border: 0; width: 100%; height: 100%}
.main { width: 100%; height: 100% }

View file

@ -225,8 +225,7 @@ class No:
can't be triggered, do not return False, return an instance of No
instead. When creating such an instance, you can specify an error
message.'''
def __init__(self, msg):
self.msg = msg
def __nonzero__(self):
return False
def __init__(self, msg): self.msg = msg
def __nonzero__(self): return False
def __repr__(self): return '<No: %s>' % self.msg
# ------------------------------------------------------------------------------

View file

@ -394,7 +394,7 @@ class ToolWrapper(AbstractWrapper):
refInfo=ztool.getRefInfo();
refObject=refInfo[0];
refField=refInfo[1];
refUrlPart=refObject and ('&amp;ref=%s:%s' % (refObject.UID(), \
refUrlPart=refObject and ('&amp;ref=%s:%s' % (refObject.id, \
refField)) or '';
startNumber=req.get('startNumber', '0');
startNumber=int(startNumber);