File: config.py

package info (click to toggle)
zope-linguaplone 0.7-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 356 kB
  • ctags: 275
  • sloc: python: 1,364; sh: 60; makefile: 37
file content (43 lines) | stat: -rw-r--r-- 1,651 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
PKG_NAME = "LinguaPlone"
SKIN_NAME = "LinguaPlone"

RELATIONSHIP = 'translationOf'

INSTALL_DEMO_TYPES = 1 ##Install the demo types
DEBUG = 1  ## See debug messages

# If true the global request patch is applied.
GLOBAL_REQUEST_PATCH = 1

# I18N-aware reference tool will look up the correct translation when you look
# up a reference, unless you ask the tool not to.
# Only use if you understand the implications.
I18NAWARE_REFERENCE_TOOL = 0

# With cache translations, getCanonical() and getTranslations() will be cached.
# However, it might lead to read inconsistencies between threads and ZEO clients
CACHE_TRANSLATIONS = 0

# With translations-aware catalog you only get the results for the current
# language, unless you explicitly ask for all results by providing the
# Language='all' keyword.
I18NAWARE_CATALOG = 1

# When auto-notification is enabled, editing the canonical translation object
# will automatically invalidate all translations.
# With this off you must manually invalidate translations by calling their
# notifyCanonicalUpdate() method or through the invalidateTranslations() API.
AUTO_NOTIFY_CANONICAL_UPDATE = 1

# With delete protection on, the canonical translation object can
# only be deleted if there are no more translations left. 
# In other words: You have to delete all translations before you can 
# delete the canonical translation object.
CANONICAL_DELETE_PROTECTION = 0

# This key is used by the constructor when creating translations
# to make sure translation linking is done within the invokeFactory and
# before notifyWorkflowCreated.
KWARGS_TRANSLATION_KEY = 'linguaplone_languageOf'

GLOBALS = globals()