!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 

uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC
2014 x86_64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/lib/python2.6/dist-packages/axiom/test/upgrade_fixtures/   drwxr-xr-x
Free 129.59 GB of 142.11 GB (91.19%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     replace_delete_new.py (1.39 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
# -*- test-case-name: axiom.test.test_upgrading.DuringUpgradeTests.test_cascadingDeletedReferenceModifiedByForeignUpgrader -*-

from axiom.attributes import reference, integer
from axiom.item import Item, normalize
from axiom.upgrade import registerUpgrader

NEW_VALUE = 71

class Referrer(Item):
    """
    An item which just refers to another kind of item which will be upgraded.
    """
    # Don't import the old schema. -exarkun
    typeName = normalize(
        "axiom.test.upgrade_fixtures.replace_delete_old.Referrer")
    referee = reference(whenDeleted=reference.CASCADE)


class Referee(Item):
    """
    An item the upgrader of which replaces itself on L{Referrer} with a new
    instance with a different value.
    """
    # Don't import the old schema. -exarkun
    typeName = normalize(
        "axiom.test.upgrade_fixtures.replace_delete_old.Referee")
    schemaVersion = 2
    value = integer()


def referee1to2(oldReferee):
    """
    Find the L{Referrer} which refers to C{oldReferee} and replace its
    C{referee} attribute with a new, different L{Referee} item with a different
    C{value}, and which deletes the original L{Referee}.
    """
    store = oldReferee.store
    [referrer] = list(store.query(Referrer, Referrer.referee == oldReferee))
    referrer.referee = Referee(store=store, value=NEW_VALUE)
    oldReferee.deleteFromStore()

registerUpgrader(referee1to2, Referee.typeName, 1, 2)

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0266 ]--