Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
9c33d98a074e
Commit
7e13318b
authored
Aug 01, 2009
by
Sylvain Thénault
Browse files
R [schema hooks] big refactoring / reorganization for clearer code, a few fixes on the way
parent
de355ee59e52
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
server/repository.py
View file @
9c33d98a
...
...
@@ -932,9 +932,10 @@ class Repository(object):
"""
rql
=
[]
eschema
=
self
.
schema
.
eschema
(
etype
)
pendingrtypes
=
session
.
transaction_data
.
get
(
'pendingrtypes'
,
())
for
rschema
,
targetschemas
,
x
in
eschema
.
relation_definitions
():
rtype
=
rschema
.
type
if
rtype
in
VIRTUAL_RTYPES
:
if
rtype
in
VIRTUAL_RTYPES
or
rtype
in
pendingrtypes
:
continue
var
=
'%s%s'
%
(
rtype
.
upper
(),
x
.
upper
())
if
x
==
'subject'
:
...
...
server/schemahooks.py
View file @
9c33d98a
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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