| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/twisted/enterprise/ |
Upload File : |
ó
[³XMc @ sT d Z d d l Z d d l m Z m Z m Z m Z d d d „ ƒ YZ d g Z d S( sq
DEPRECATED.
A (R)elational (O)bject (W)rapper.
This is an extremely thin wrapper.
Maintainer: Dave Peticolas
iÿÿÿÿN( t DBErrort NOQUOTEt getKeyColumnt dbTypeMapt RowObjectc B sY e Z d Z d Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
d „ Z RS( s
I represent a row in a table in a relational database.
My class is "populated" by a Reflector object. After I am
populated, instances of me are able to interact with a particular
database table.
You should use a class derived from this class for each database
table.
reflector.loadObjectsFrom() is used to create sets of
instance of objects of this class from database tables.
Once created, the "key column" attributes cannot be changed.
Class Attributes that users must supply::
rowKeyColumns # list of key columns in form: [(columnName, typeName)]
rowTableName # name of database table
rowColumns # list of the columns in the table with the correct
# case.this will be used to create member variables.
rowFactoryMethod # method to create an instance of this class.
# HACK: must be in a list!!! [factoryMethod] (optional)
rowForeignKeys # keys to other tables (optional)
i c C s t j d d t d d ƒd S( s
DEPRECATED.
s6 twisted.enterprise.row is deprecated since Twisted 8.0t categoryt
stackleveli N( t warningst warnt DeprecationWarning( t self( ( s: /usr/lib/python2.7/dist-packages/twisted/enterprise/row.pyt __init__4 s c C s_ d } x, | j D]! \ } } | | k r d } q q W| sN t d | ƒ ‚ n | | j | <d S( s… Assign to a key attribute.
This cannot be done through normal means to protect changing
keys of db objects.
i i s %s is not a key columns.N( t
rowKeyColumnsR t __dict__( R
t attrNamet valuet foundt keyColumnt type( ( s: /usr/lib/python2.7/dist-packages/twisted/enterprise/row.pyt
assignKeyAttr; s
c C sS x<