Back to index

plone3  3.1.7
config.py
Go to the documentation of this file.
00001 ##############################################################################
00002 #
00003 # Copyright (c) 2003-2008 Kupu Contributors. All rights reserved.
00004 #
00005 # This software is distributed under the terms of the Kupu
00006 # License. See LICENSE.txt for license text. For a list of Kupu
00007 # Contributors see CREDITS.txt.
00008 #
00009 ##############################################################################
00010 """Kupu configuration file
00011 """
00012 import re
00013 
00014 # Pattern to match resolveuid links in HTML.
00015 # Match groups:
00016 #    tag: the html tag from the start up to the point where the uid
00017 #    occurs.
00018 #    url: the url containing the uid (stops after the uid: any
00019 #    trailing part such as '/image_thumb' is not included.
00020 #    uid: the uid itself.
00021 UID_PATTERN = re.compile('(?P<tag><(?:a|img|object|param)\\s[^>]*(?:src|href|data|value)\s*=\s*")(?P<url>[^"]*resolveuid/(?P<uid>[^/"#? ]*))', re.DOTALL | re.IGNORECASE)
00022