Commits

Anonymous committed a268e9b

[svn] o string exceptions are lame, man
o changelog r1844

Comments (0)

Files changed (3)

   highlights text with the CSS class name 'hilight' by default: it now uses the
   CSS class name 'highlight' instead. The function's 'hilighter' keyword
   argument has also been deprecated, use 'highlighter' instead.
+* Fixed the broken markdown function.
 * Upgraded markdown from 1.5 to 1.6a.
 * Sync'd Prototype helper to 6057.
 * Sync'd Urls helper to 6070.

webhelpers/rails/prototype.py

     elif opval == 'remove':
         jsf = "Element.remove('%s')" % element_id
     else:
-        raise "Invalid action, choose one of update, remove, or empty"
+        raise ValueError("Invalid action, choose one of update, remove, or empty")
     
     jsf += ";\n"
     if options.get('binding'):

webhelpers/rails/urls.py

         method = 'POST'
     
     if popup and method:
-        raise "You can't use popup and post in the same link"
+        raise ValueError("You can't use popup and post in the same link")
     elif confirm and popup:
         oc = "if (%s) { %s };return false;" % (confirm_javascript_function(confirm), 
                                                popup_javascript_function(popup))
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.