mitar avatar mitar committed 1763dcf

Removing support for links without namespace.

Comments (0)

Files changed (1)

cmsplugin_markup_tracwiki/tracwiki.py

     # IWikiSyntaxProvider methods
     
     def get_wiki_syntax(self):
-        def cmspagename_with_label_link(formatter, match, fullmatch):
-            target = formatter._unquote(fullmatch.group('cms_target'))
-            label = fullmatch.group('cms_label')
-            link, params, fragment = formatter.split_link(target)
-            exist = resource.resource_exists(self.env, resource.Resource('cms', link))
-            if exist is None:
-                return match
-            elif exist:
-                return self._format_link(formatter, 'cms', target, label.strip(), fullmatch)
-            else:
-                tag.a(label + '?', class_='missing', href=target, rel='nofollow')
-
-        yield (r"!?\[(?P<cms_target>%s|[^/\s]\S*)\s+(?P<cms_label>%s|[^\]]+)\]" % (wiki.parser.WikiParser.QUOTED_STRING, wiki.parser.WikiParser.QUOTED_STRING), cmspagename_with_label_link)
-
+        return
+    
     def get_link_resolvers(self):
         yield ('cms', self._format_link)
 
-# TODO: Use content from filer for [[Image]] and attachments
-# TODO: Why is [cms:foo Foo] not rendered correctly?
+# TODO: Use content from filer for [[Image]] and attachments (attachments could be file and image plugins in the same placeholder)
 # TODO: Relative links [..] should traverse Django CMS hierarchy
+# TODO: Make Trac and Django CMS caching interoperate (how does dynamic macros currently behave?)
+# TODO: Does request really have URL we want (for example in admin URL is not the URL of a resulting page)
 
 class Markup(object):
     name = 'Trac wiki'
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.