Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
87ac03aed941
Commit
d7f1077d
authored
Aug 13, 2009
by
Sylvain Thénault
Browse files
doc update
parent
3455f72010fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
appobject.py
View file @
87ac03ae
...
...
@@ -213,24 +213,23 @@ class AppObject(object):
Moreover, the `__abstract__` attribute may be set to True to indicate
that a appobject is abstract and should not be registered.
At registration time, the following attributes are set on the class:
:vreg:
the instance's registry
:schema:
the instance's schema
:config:
the instance's configuration
At selection time, the following attributes are set on the instance:
:req:
:cw_req:
current request
:rset:
:cw_extra_kwargs:
other received arguments
only if rset is found in arguments (in which case rset/row/col will be
removed from cwextra_kwargs):
:cw_rset:
context result set or None
:row:
:
cw_
row:
if a result set is set and the context is about a particular cell in the
result set, and not the result set as a whole, specify the row number we
are interested in, else None
:col:
:
cw_
col:
if a result set is set and the context is about a particular cell in the
result set, and not the result set as a whole, specify the col number we
are interested in, else None
...
...
req.py
View file @
87ac03ae
...
...
@@ -30,6 +30,15 @@ class Cache(dict):
class
RequestSessionBase
(
object
):
"""base class containing stuff shared by server session and web request
request/session is the main resources accessor, mainly through it's vreg
attribute:
:vreg:
the instance's registry
:vreg.schema:
the instance's schema
:vreg.config:
the instance's configuration
"""
def
__init__
(
self
,
vreg
):
self
.
vreg
=
vreg
...
...
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