Commits

megamahi committed 164d531

Removed extra dependency. Built it in instead.

  • Participants
  • Parent commits 3128160

Comments (0)

Files changed (2)

     install_requires=[
         "tw2.core>=2.0b2",
         "tw2.jquery",
-        "tw2.jqplugins.ui",
         ],
     extras_require={
         'mako': _extra_mako,

File tw2/qrcode/widgets.py

 import tw2.core as twc
 import tw2.jquery
 
-import tw2.jquery
-import tw2.jquery.base as tw2_jq_c_b
-import tw2.jqplugins.ui.base as tw2_jq_ui
-
 import base
 
-class QRCodeWidget(tw2_jq_ui.JQueryUIWidget):
+class QRCodeWidget(twc.Widget):
     '''
     Creates a QRCode using client side javascript.
     '''
         if self.level <= 0 and self.level > 4:
             self.level = 4
 
+        self.selector = self.attrs['id'].replace(':', '\\\\:') # grabed from tw2.jqplugins.ui
         self.width = str(self.width)
         self.level = str(self.level)