Anonymous avatar Anonymous committed 77538b9

[svn] Reduce name import to avoid name/module conflict

Comments (0)

Files changed (1)

webhelpers/rails/url.py

 
 from routes import url_for, request_config
 from javascript import *
-from tag import *
-from tag import tag_options
+import tag
 
 def get_url(url):
     if callable(url):
     """
     if html_options:
         html_options = convert_options_to_javascript(**html_options)
-        tag_op = tag_options(**html_options)
+        tag_op = tag.tag_options(**html_options)
     else:
         tag_op = ''
     if callable(url):
     html_options.update(dict(type='submit', value=name))
     
     return """<form method="post" action="%s" class="button-to"><div>""" % html_escape(url) + \
-           tag("input", **html_options) + "</div></form>"
+           tag.tag("input", **html_options) + "</div></form>"
 
 def link_to_unless_current(name, url, **html_options):
     """
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.