Package p6 :: Package ui :: Package pages :: Module license :: Class LicenseChooserPage
[show private | hide private]
[frames | no frames]

Type LicenseChooserPage

object --+                        
         |                        
    Object --+                    
             |                    
    EvtHandler --+                
                 |                
            Window --+            
                     |            
                 Panel --+        
                         |        
                   PyPanel --+    
                             |    
                    XrcWizPage --+
                                 |
                                LicenseChooserPage


Custom wizard page which implements a license chooser based on CC's web service interface.
Method Summary
  __init__(self, parent, metaGroup)
  clearChooser(self)
  GetCBValue(self, radioSizer)
  getLicenseClasses(self)
Calls the SOAP API via proxy to get a list of all available license class identifiers.
  getLicenseName(self)
Extract the license name from the returned licensing document.
  getLicenseUrl(self)
Extract the license URL from the returned licensing document.
  onLicense(self, event)
Submit selections and display license info.
  onSelectLicenseClass(self, event)
  updateFieldDetails(self, fieldid)
  updateLicense(self, event)
  validate(self, event)
    Inherited from XrcWizPage
  onChanged(self, event)
  onChanging(self, event)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
str HTML_LICENSE = '<html><body bgcolor="#%s"><font size="3"...
str PAGE_XRC = '\n<resource>\n  <object class="wxPanel" name...
str REST_ROOT = 'http://api.creativecommons.org/rest'
str STR_INTRO_TEXT = 'With a Creative Commons license, you k...
    Inherited from XrcWizPage
Implements __implemented__ = <implementedBy ccwx.xrcwiz.XrcWizPage>
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...

Instance Method Details

getLicenseClasses(self)

Calls the SOAP API via proxy to get a list of all available license class identifiers.

getLicenseName(self)

Extract the license name from the returned licensing document.

getLicenseUrl(self)

Extract the license URL from the returned licensing document.

onLicense(self, event)

Submit selections and display license info.

Class Variable Details

HTML_LICENSE

Type:
str
Value:
'<html><body bgcolor="#%s"><font size="3">You chose <a href="%s">%s</a\
>.</font></body></html>'                                               

PAGE_XRC

Type:
str
Value:
'''
<resource>
  <object class="wxPanel" name="LICENSE_CHOOSER">
    <object class="wxFlexGridSizer">
      <cols>1</cols>
      <vgap>5</vgap>
      <hgap>5</hgap>
      <growablecols>0</growablecols>
...                                                                    

REST_ROOT

Type:
str
Value:
'http://api.creativecommons.org/rest'                                  

STR_INTRO_TEXT

Type:
str
Value:
'With a Creative Commons license, you keep your copyright but allow pe\
ople to copy and distribute your work provided the give you credit -- \
and only on the conditions you specify here.  If you want to offer you\
r work with no conditions, choose the Public Domain.'                  

Generated by Epydoc 2.1 on Fri Jun 24 12:01:26 2005 http://epydoc.sf.net