!C99Shell v. 1.0 pre-release build #16!

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/usr/lib/python2.4/site-packages/Ft/Rdf/   drwxr-xr-x
Free 3.73 GB of 27.03 GB (13.8%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Container.py (2.39 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
########################################################################
# $Header: /var/local/cvsroot/4Suite/Ft/Rdf/Container.py,v 1.4 2005/02/26 01:18:34 jkloth Exp $
"""
Classes for RDF Container objects

Copyright 2004 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/
"""

from Ft.Rdf import RDF_MS_BASE, RdfException
from Ft.Rdf.Resource import Resource


class Container(Resource, list):
    """
    Base class for Bag, Sequence, and Alternative,
    as defined in sec. 3.1 of the 1999 RDF Model and Syntax Spec.
    """
    def __init__(self, className, uri=None, contents=None):
        #if uri == None:
        #    uri = model.generateUri()
        contents = contents or []
        Resource.__init__(self, uri)
        list.__init__(self, contents)
        self.className = className
        return

    def __repr__(self):
        st = '<%s at %s URI="%s": '%(self.className, id(self),self.uri)
        if len(self) < 1:
            st += 'empty'
        else:
            st += '[%s]' % ', '.join([i for i in self])
        st += '>'
        return st

    def append(self, obj):
        if not isinstance(obj, (str, unicode)):
            raise RdfException(RdfException.INVALID_CONTAINER_ITEM_TYPE, obj)
        else:
            return list.append(self, obj)


class Bag(Container):
    """
    An unordered list of resources or literals,
    as defined in sec. 3.1 of the 1999 RDF Model and Syntax Spec.
    """
    def __init__(self, uri=None, contents=None):
        return Container.__init__(self, 'Bag', uri, contents)

class Sequence(Container):
    """
    An ordered list of resources or literals,
    as defined in sec. 3.1 of the 1999 RDF Model and Syntax Spec.
    """
    def __init__(self, uri=None, contents=None):
        return Container.__init__(self, 'Seq', uri, contents)

class Alternative(Container):
    """
    A list of resources or literals that represent alternatives
    for the (single) value of a property,
    as defined in sec. 3.1 of the 1999 RDF Model and Syntax Spec.
    """
    def __init__(self, uri=None, contents=None):
        return Container.__init__(self, 'Alt', uri, contents)


baseLength = len(RDF_MS_BASE + '_')

def SortStatements(left, right):
    leftCtr = int(left.predicate[baseLength:])
    rightCtr = int(right.predicate[baseLength:])
    return cmp(leftCtr, rightCtr)

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.004 ]--