Editing TracDev/ContextRefactoring
Attachments (6)
-
trac_context.py
(11.7 KB
) - added by 17 years ago.
Work in progress snapshot - this is a modified source:trunk/trac/context.py, which will later be renamed to trac/resource.py; it contains the definition of the
Resource
class, theIResourceManager
interface and theResourceSystem
component. -
trac_perm.py
(20.9 KB
) - added by 17 years ago.
Work in progress snapshot - the modifications to source:trunk/trac/perm.py are mainly to be found near the end of the file, in the
PermissionCache
class. -
trac_mimeview_api.py
(35.7 KB
) - added by 17 years ago.
Work in progress snapshot - the modifications to source:trunk/trac/mimeview/api.py are rather minimal, only the addition of the
RenderingContext
class, used to provide a stack of the resources associated to each rendered content (the top of the stack being the current context) -
trac_attachment.py
(27.5 KB
) - added by 17 years ago.
Work in progress snapshot - this illustrates the modifications need to use the new resource and permission scheme (base is source:trunk/trac/attachment.py)
-
trac_templates_attachment.html
(4.4 KB
) - added by 17 years ago.
Work in progress snapshot - this illustrates the modifications needed to use the new resource and permission scheme in a template (base is source:trunk/trac/templates/attachment.html)
-
work_in_progress_snapshot.diff
(40.8 KB
) - added by 17 years ago.
Work in progress snapshot - the diff (on r6020) corresponding to the above files, except for the context.py file which has so much changed it's not funny.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.