[gen] Added px.override allowing to modify PX code; bugfixes; added migration code for converting File instances to FileInfo instances.
This commit is contained in:
parent
be145be254
commit
c002b5cb59
8 changed files with 71 additions and 21 deletions
|
@ -1,11 +1,10 @@
|
|||
# ------------------------------------------------------------------------------
|
||||
import os.path, time
|
||||
import appy
|
||||
from appy.gen.mail import sendMail
|
||||
from appy.shared.utils import executeCommand
|
||||
from appy.gen.wrappers import AbstractWrapper
|
||||
from appy.px import Px
|
||||
|
||||
from appy.gen.mail import sendMail
|
||||
from appy.gen.wrappers import AbstractWrapper
|
||||
from appy.shared.utils import executeCommand
|
||||
# ------------------------------------------------------------------------------
|
||||
class ToolWrapper(AbstractWrapper):
|
||||
|
||||
|
@ -233,7 +232,7 @@ class ToolWrapper(AbstractWrapper):
|
|||
</x>
|
||||
|
||||
<!-- Predefined searches -->
|
||||
<x for="search in searchInfo.searches">
|
||||
<x for="search in searchInfo.searches" var2="field=search">
|
||||
<x if="search.type == 'group'">:search.px</x>
|
||||
<x if="search.type != 'group'">:search.pxView</x>
|
||||
</x>
|
||||
|
|
|
@ -123,7 +123,7 @@ class UserWrapper(AbstractWrapper):
|
|||
# Browse all objects of the database and update potential local roles
|
||||
# that referred to the old login.
|
||||
context = {'nb': 0, 'old': oldLogin, 'new': newLogin}
|
||||
for className in self.o.getProductConfig().allClassNames:
|
||||
for className in self.tool.o.getAllClassNames():
|
||||
self.compute(className, context=context, noSecurity=True,
|
||||
expression="ctx['nb'] += obj.o.applyUserIdChange(" \
|
||||
"ctx['old'], ctx['new'])")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue