Back to index

plone3  3.1.7
Namespaces | Functions | Variables
ZopeVersionControl Namespace Reference

Namespaces

namespace  EventLog
namespace  IVersionControl
namespace  nonversioned
namespace  Repository
namespace  SequenceWrapper
namespace  tests
namespace  Utility
namespace  Version
namespace  VersionHistory
namespace  VersionSupport
namespace  ZopeRepository
namespace  ZopeVersion
namespace  ZopeVersionHistory

Functions

def initialize
def install_hack
def registerIcon

Variables

string __version__ = '$Revision: 1.4 $'
 Copyright (c) 2001 Zope Corporation and Contributors.

Function Documentation

def ZopeVersionControl.initialize (   context)

Definition at line 19 of file __init__.py.

00019 
00020 def initialize(context):
00021 
00022     context.registerClass(
00023         instance_class = ZopeRepository.ZopeRepository,
00024         meta_type      = 'Repository',
00025         permission     = 'Add Repositories',
00026         constructors   = ZopeRepository.constructors,
00027         icon           = 'www/Repository.gif'
00028       )
00029 
00030     context.registerHelp()
00031     context.registerHelpTitle('Zope Help')
00032 
00033     registerIcon('VersionHistory.gif')
00034     registerIcon('Version.gif')
00035 

Here is the call graph for this function:

Definition at line 36 of file __init__.py.

00036 
00037 def install_hack():
00038     # Hackery - don't try this at home, kids. :) This is temporary for
00039     # testing purposes only.
00040     from VersionSupport import VersionSupport
00041     import OFS.SimpleItem, App.Management
00042 
00043     method = App.Management.Tabs.filtered_manage_options
00044     def filtered_manage_options(self, REQUEST=None, method = method,
00045                                 options = VersionSupport.manage_options):
00046         result = method(self, REQUEST)
00047         for item in result:
00048             if item.get('label') == 'Version Control':
00049                 return result
00050         for option in options:
00051             result.append(option)
00052         return result
00053     App.Management.Tabs.filtered_manage_options = filtered_manage_options
00054 
00055     for _class in (OFS.SimpleItem.Item, OFS.SimpleItem.Item_w__name__):
00056         dict = _class.__dict__
00057         if not hasattr(dict, '__setitem__'):
00058             # new-style classes don't need this [>=2.8]
00059             continue
00060 
00061         for name, value in VersionSupport.__dict__.items():
00062             if name != 'manage_options':
00063                 dict[name] = value
00064 
00065         Globals.InitializeClass(_class)
00066 

def ZopeVersionControl.registerIcon (   filename)

Definition at line 67 of file __init__.py.

00067 
00068 def registerIcon(filename):
00069     setattr(OFS.misc_.misc_.ZopeVersionControl, filename, 
00070             App.ImageFile.ImageFile('www/%s' % filename, globals())
00071             )

Here is the caller graph for this function:


Variable Documentation

string ZopeVersionControl.__version__ = '$Revision: 1.4 $'

Copyright (c) 2001 Zope Corporation and Contributors.

All Rights Reserved.

This software is subject to the provisions of the Zope Public License, Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution. THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE

Definition at line 14 of file __init__.py.