Commit d1a0f4aa authored by Jean-Paul Smets's avatar Jean-Paul Smets
Browse files

updated for aq_dynamic code generation

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1317 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d3e6ed38
.AppleDouble
*.pyc
__init__.py
.AppleDouble
*.pyc
__init__.py
.AppleDouble
*.pyc
__init__.py
.AppleDouble
*.pyc
__init__.py
......@@ -30,16 +30,11 @@
and extended local roles management
"""
# First import the minimal number of packages required by the code generation
from Products.ERP5Type.InitGenerator import generateInitFiles
import sys
# Update the self generated code for Document, PropertySheet and Interface
this_module = sys.modules[ __name__ ]
document_classes = generateInitFiles(this_module, globals())
# Update ERP5 Globals
from Products.ERP5Type.Utils import initializeProduct, updateGlobals
import sys, Permissions
this_module = sys.modules[ __name__ ]
document_classes = updateGlobals( this_module, globals(), permissions_module = Permissions)
# Finish installation
def initialize( context ):
......
__init__.py
.AppleDouble
*.pyc
__init__.py
.AppleDouble
*.pyc
__init__.py
.AppleDouble
*.pyc
from CategoryCore import CategoryCore
from BaseCategory import BaseCategory
\ No newline at end of file
......@@ -30,22 +30,11 @@
in the CMF. It is based on the ERP5Type RAD
"""
# First import the minimal number of packages required by the code generation
from Products.ERP5Type.InitGenerator import generateInitFiles
import sys
# Update the self generated code for Document, PropertySheet and Interface
this_module = sys.modules[ __name__ ]
document_classes = generateInitFiles(this_module, globals())
# Update ERP5 Globals
from Products.ERP5Type.Utils import initializeProduct, updateGlobals
import Interface, PropertySheet, Permissions, Constraint
updateGlobals( this_module, globals(),
property_sheet_module = PropertySheet,
interface_module = Interface,
permissions_module = Permissions,
constraint_module = Constraint)
import sys, Permissions
this_module = sys.modules[ __name__ ]
document_classes = updateGlobals( this_module, globals(), permissions_module = Permissions)
# Define object classes and tools
import Category, CategoryTool
......
__init__.py
.AppleDouble
*.pyc
.AppleDouble
*.pyc
__init__.py
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment