403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/twisted/enterprise/row.pyc
ó
[³XMc@sTdZddlZddlmZmZmZmZddd„ƒYZdgZdS(sq
DEPRECATED.

A (R)elational (O)bject (W)rapper.

This is an extremely thin wrapper.

Maintainer: Dave Peticolas
iÿÿÿÿN(tDBErrortNOQUOTEtgetKeyColumnt	dbTypeMapt	RowObjectcBsYeZdZdZdZd„Zd„Zd„Zd„Zd„Z	d„Z
d„ZRS(	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)
    icCstjddtddƒdS(s
        DEPRECATED.
        s6twisted.enterprise.row is deprecated since Twisted 8.0tcategoryt
stackleveliN(twarningstwarntDeprecationWarning(tself((s:/usr/lib/python2.7/dist-packages/twisted/enterprise/row.pyt__init__4scCs_d}x,|jD]!\}}||krd}qqW|sNtd|ƒ‚n||j|<dS(s…Assign to a key attribute.

        This cannot be done through normal means to protect changing
        keys of db objects.
        iis%s is not a key columns.N(t
rowKeyColumnsRt__dict__(R
tattrNametvaluetfoundt	keyColumnttype((s:/usr/lib/python2.7/dist-packages/twisted/enterprise/row.pyt
assignKeyAttr;s
cCsSx<|jD]1\}}|jƒ|jƒkr
t||ƒSq
Wtd|ƒ‚dS(s,Find an attribute by caseless name.
        sUnable to find attribute %sN(t
rowColumnstlowertgetattrR(R
RtattrR((s:/usr/lib/python2.7/dist-packages/twisted/enterprise/row.pyt
findAttributeIscCsƒt|j|ƒr+td||fƒ‚n||jkrr||jj|dƒkrr|jrr|jdƒqrn||j|<dS(s;Special setattr to prevent changing of key values.
        sHcannot assign value <%s> to key column attribute <%s> of RowObject classiN(	Rt	__class__RRR
tgettNonetdirtytsetDirty(R
tnameR((s:/usr/lib/python2.7/dist-packages/twisted/enterprise/row.pyt__setattr__Qs%cCs¬x¥|jD]š}t|j|ƒr(q
nxy|jD]n\}}}|j|ƒ|jƒkr2tj|dƒ}|tkrt	||dƒq t	||dƒq2q2Wq
WdS(s…Populate instance with default attributes.

        This is used when creating a new instance NOT from the
        database.
        itN(
RRRt	dbColumnsRRRRRtsetattr(R
Rtcolumntctypettypeidtq((s:/usr/lib/python2.7/dist-packages/twisted/enterprise/row.pytcreateDefaultAttributes^scCs||jd<dS(s‘Use this to set the 'dirty' flag.

        (note: this avoids infinite recursion in __setattr__, and
        prevents the 'dirty' flag )
        RN(R
(R
tflag((s:/usr/lib/python2.7/dist-packages/twisted/enterprise/row.pyRoscCsPg}|j|jƒx-|jD]"\}}|jt||ƒƒq Wt|ƒS(N(tappendtrowTableNameRRttuple(R
tkeystkeyNametkeyType((s:/usr/lib/python2.7/dist-packages/twisted/enterprise/row.pytgetKeyTuplews
(t__name__t
__module__t__doc__t	populatedRRRRRR'RR/(((s:/usr/lib/python2.7/dist-packages/twisted/enterprise/row.pyRs				
		((	R2Rttwisted.enterprise.utilRRRRRt__all__(((s:/usr/lib/python2.7/dist-packages/twisted/enterprise/row.pyt<module>s"j

Youez - 2016 - github.com/yon3zu
LinuXploit