Package turbogears :: Package toolbox :: Package designer :: Class Designer

Class Designer

source code

            object --+        
                     |        
controllers.Controller --+    
                         |    
controllers.RootController --+
                             |
                            Designer

Designer for SQLObject models.

Create your classes, define your fields and manage your relations. Visualize and generate code for SQLObject models.


Version: 0.1

Author: Ronald Jaramillo

Copyright: Copyright 2005 Ronald Jaramillo

License: MIT

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
set_model(self, model) source code
 
get_model_name(self) source code
 
register_static_directory(self) source code
 
column_type(self, column)
Given a column representation return the column type.
source code
 
column_default(self, column, column_type) source code
 
load_column(self, column_name, column, model_object) source code
 
other_method_join_name(self, column, model_object_name) source code
 
other_method_name(self, column, model_object_name) source code
 
is_inheritable_base_class(self, obj)
Check if the object is a direct subclass of InheritableSQLObject
source code
 
load_columns(self, model_object) source code
 
load_current_model(self, *_decorator__varargs, **_decorator__kwargs) source code
 
save_session_as_name(self, name) source code
 
save_state(self, state, name='model_designer.tmp', *_decorator__varargs, **_decorator__kwargs) source code
 
model_path(self) source code
 
save_model(self, code) source code
 
save_and_create_(self, code, order) source code
 
save_and_create(self, code, order, *_decorator__varargs, **_decorator__kwargs) source code
 
load_session_list(self) source code
 
session_exists(self) source code
 
retrieve_sample(self, name, *_decorator__varargs, **_decorator__kwargs) source code
 
current_session_model(self, *_decorator__varargs, **_decorator__kwargs) source code
 
save(self, code, *_decorator__varargs, **_decorator__kwargs) source code
 
session_list(self, *_decorator__varargs, **_decorator__kwargs) source code
 
index(self, *_decorator__varargs, **_decorator__kwargs) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  __label__ = 'ModelDesigner'
  __email__ = 'ronald@checkandshare.com'
  baseTemplate = 'turbogears.toolbox.designer'
  model = None
hash(x)
  icon = '/tg_static/images/designer.png'

Inherited from controllers.RootController: is_app_root

Inherited from controllers.Controller: accesslog, msglog, msglogfunc

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

load_current_model(self, *_decorator__varargs, **_decorator__kwargs)

source code 
Decorators:
  • @expose(format= 'json')

save_state(self, state, name='model_designer.tmp', *_decorator__varargs, **_decorator__kwargs)

source code 
Decorators:
  • @expose(format= 'json')

save_and_create(self, code, order, *_decorator__varargs, **_decorator__kwargs)

source code 
Decorators:
  • @expose(format= 'json')

retrieve_sample(self, name, *_decorator__varargs, **_decorator__kwargs)

source code 
Decorators:
  • @expose(format= 'json')

current_session_model(self, *_decorator__varargs, **_decorator__kwargs)

source code 
Decorators:
  • @expose(format= 'json')

save(self, code, *_decorator__varargs, **_decorator__kwargs)

source code 
Decorators:
  • @expose(format= 'json')

session_list(self, *_decorator__varargs, **_decorator__kwargs)

source code 
Decorators:
  • @expose(format= 'json')

index(self, *_decorator__varargs, **_decorator__kwargs)

source code 
Decorators:
  • @expose(template= '%s.modelDesigner' % baseTemplate)