Mercurial > hg > OKFNAnnotator
annotate __init__.py @ 3:6356e78ccf5c
new version contains Annotator JS files to be used with FilesystemSite.
author | casties |
---|---|
date | Thu, 05 Apr 2012 19:37:27 +0200 |
parents | c33668e282fa |
children |
rev | line source |
---|---|
0 | 1 import AuthTokenGenerator |
3
6356e78ccf5c
new version contains Annotator JS files to be used with FilesystemSite.
casties
parents:
0
diff
changeset
|
2 import logging |
0 | 3 |
4 def initialize(context): | |
5 """initialize Annotator""" | |
6 context.registerClass( | |
7 AuthTokenGenerator.AuthTokenGenerator, | |
8 constructors = ( | |
9 AuthTokenGenerator.manage_addAuthTokenGeneratorForm, | |
10 AuthTokenGenerator.manage_addAuthTokenGenerator | |
11 ) | |
12 ) | |
13 | |
3
6356e78ccf5c
new version contains Annotator JS files to be used with FilesystemSite.
casties
parents:
0
diff
changeset
|
14 # FileSystemSite for annotator_files |
6356e78ccf5c
new version contains Annotator JS files to be used with FilesystemSite.
casties
parents:
0
diff
changeset
|
15 try: |
6356e78ccf5c
new version contains Annotator JS files to be used with FilesystemSite.
casties
parents:
0
diff
changeset
|
16 from Products.FileSystemSite.DirectoryView import registerDirectory |
6356e78ccf5c
new version contains Annotator JS files to be used with FilesystemSite.
casties
parents:
0
diff
changeset
|
17 registerDirectory('annotator_files', globals()) |
6356e78ccf5c
new version contains Annotator JS files to be used with FilesystemSite.
casties
parents:
0
diff
changeset
|
18 except: |
6356e78ccf5c
new version contains Annotator JS files to be used with FilesystemSite.
casties
parents:
0
diff
changeset
|
19 logging.error("unable to import FileSystemSite.DirectoryView!") |