Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
6ce3a9f6
Commit
6ce3a9f6
authored
Apr 04, 2005
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added configuration of class factory.
parent
0953ac13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
lib/python/ZClasses/_pmc.txt
lib/python/ZClasses/_pmc.txt
+6
-1
No files found.
lib/python/ZClasses/_pmc.txt
View file @
6ce3a9f6
...
...
@@ -63,7 +63,12 @@ change because the object hasn't been saved.
>>> C._p_changed
False
Now, we can store the class in a database:
Now, we can store the class in a database. We have to be careful,
however, to use the ZClass-aware class factory so that we can find
ZClasses, which are stored in the database, rather than in modules:
>>> import Zope2.App.ClassFactory
>>> some_database.classFactory = Zope2.App.ClassFactory.ClassFactory
>>> connection = some_database.open()
>>> connection.root()['C'] = C
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment