Package lemon :: Package external :: Package gadfly :: Module introspection :: Class DictKeyValueView
[show private | hide private]
[frames | no frames]

Class DictKeyValueView

Relation0 --+        
            |        
         View --+    
                |    
       RemoteView --+
                    |
                   DictKeyValueView

Known Subclasses:
DataDefsView, IndicesView, RelationsView

Less trivial example. Dict keys/values converted to strings

Method Summary
  __init__(self, dict)
  listing(self)
return list of values (1 column) or list of tuples of values (>1 column).
    Inherited from RemoteView
  __repr__(self)
  attributes(self)
  irepr(self)
  relbind(self, db, atts)
bind self to db, ignore atts...
  rows(self, andseqs)
  uncache(self)
    Inherited from View
  add_index(*args, **kw)
  add_tuples(*args, **kw)
  choose_index(self, a)
no indices on views (might change this?)...
  drop_index(*args, **kw)
  drop_indices(*args, **kw)
ignore this op when applied to view...
  dump(*args, **kw)
  erase_tuples(*args, **kw)
  ignore_op_for_view(*args, **kw)
ignore this op when applied to view...
  load(*args, **kw)
  regenerate_indices(*args, **kw)
ignore this op when applied to view...
  reset_tuples(*args, **kw)
  set_empty(*args, **kw)
  shadow(*args, **kw)
  UNDEFINED_OP_FOR_VIEW(*args, **kw)
    Inherited from Relation0
  unshadow(self)
make self into a replacement for shadowed, return self.

Class Variable Summary
list column_names = ['key', 'value']
int mapstring = 1                                                                     
int static = 0                                                                     
    Inherited from RemoteView
NoneType cached_rows = None                                                                  
    Inherited from View
int is_shadow = 0                                                                     
int is_view = 1                                                                     
int touched = 0                                                                     

Method Details

listing(self)

return list of values (1 column)
or list of tuples of values (>1 column).
size of elts should match number of columns.
Overrides:
lemon.external.gadfly.introspection.RemoteView.listing (inherited documentation)

Class Variable Details

column_names

Type:
list
Value:
['key', 'value']                                                       

mapstring

Type:
int
Value:
1                                                                     

static

Type:
int
Value:
0                                                                     

Generated by Epydoc 2.0 on Mon Nov 10 15:07:48 2003 http://epydoc.sf.net