comparison MoinMoin/config/multiconfig.py @ 1654:2a1f570ea6d4

cfg.url_prefix_local for stuff that needs to be loaded from same-site to work correctly (e.g. FCKeditor - ported from 1.5)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 31 Oct 2006 22:25:22 +0100
parents 0b0b94e1680f
children 0dee8ba737af
comparison
equal deleted inserted replaced
1653:5b15b6e010cf 1654:2a1f570ea6d4
427 427
428 # includes the moin version number, so we can have a unlimited cache lifetime 428 # includes the moin version number, so we can have a unlimited cache lifetime
429 # for the static stuff. if stuff changes on version upgrade, url will change 429 # for the static stuff. if stuff changes on version upgrade, url will change
430 # immediately and we have no problem with stale caches. 430 # immediately and we have no problem with stale caches.
431 url_prefix_static = config.url_prefix_static 431 url_prefix_static = config.url_prefix_static
432 url_prefix_local = None # if None, use same value as url_prefix_static.
433 # must be same site as wiki engine (for e.g. JS permissions)
432 434
433 # we could prefix actions to be able to exclude them by robots.txt: 435 # we could prefix actions to be able to exclude them by robots.txt:
434 #url_prefix_action = 'action' # no leading or trailing '/' 436 #url_prefix_action = 'action' # no leading or trailing '/'
435 url_prefix_action = None # compatiblity 437 url_prefix_action = None # compatiblity
436 438
608 self.url_prefix_static = self.url_prefix 610 self.url_prefix_static = self.url_prefix
609 611
610 action_prefix = self.url_prefix_action 612 action_prefix = self.url_prefix_action
611 if action_prefix is not None and action_prefix.endswith('/'): # make sure there is no trailing '/' 613 if action_prefix is not None and action_prefix.endswith('/'): # make sure there is no trailing '/'
612 self.url_prefix_action = action_prefix[:-1] 614 self.url_prefix_action = action_prefix[:-1]
615
616 if self.url_prefix_local is None:
617 self.url_prefix_local = self.url_prefix_static
618
613 619
614 def load_meta_dict(self): 620 def load_meta_dict(self):
615 """ The meta_dict contains meta data about the wiki instance. """ 621 """ The meta_dict contains meta data about the wiki instance. """
616 if getattr(self, "_meta_dict", None) is None: 622 if getattr(self, "_meta_dict", None) is None:
617 self._meta_dict = wikiutil.MetaDict(os.path.join(self.data_dir, 'meta'), self.cache_dir) 623 self._meta_dict = wikiutil.MetaDict(os.path.join(self.data_dir, 'meta'), self.cache_dir)