!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/Parsers/Versa/   drwxr-xr-x
Free 3.38 GB of 27.03 GB (12.51%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Context.py (2.86 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
########################################################################
#
# File Name:            Context.py
#
#
"""

Context that is passed around for the current evaluation

WWW: http://4suite.org/4XSLT        e-mail: support@4suite.org

Copyright (c) 1999-2001 Fourthought Inc, USA.   All Rights Reserved.
See  http://4suite.org/COPYRIGHT  for license and copyright information
"""

from Ft.Rdf import RDF_MS_BASE, RDF_SCHEMA_BASE
from Ft.Rdf import RdfException
import ResourceExpressions


class Context:
    def __init__(self, driver, nsMapping, varBindings, scope=None):
        self.driver = driver
        self.nsMapping = nsMapping
        self.varBindings = varBindings
        self.current = None
        self.cachedSuperProps = None
        self.scope = scope
        return

    def isTransitive(self, property):
        if property in TRANSITIVE_BY_RULE:
            return 1
        return 0

    def clone(self):
        new_con = Context(self.driver, self.nsMapping.copy(),
                          self.varBindings.copy(), self.scope)
        new_con.current = self.current
        if self.cachedSuperProps is not None:
            new_con.cachedSuperProps = self.cachedSuperProps.copy()
        return new_con

    def getCachedSuperProps(self):
        from Ft.Rdf.Parsers.Versa import RDF_TYPE_PROP, RDF_SUBCLASSOF_PROP, RDF_SUBPROPOF_PROP
        if self.cachedSuperProps is None:
            self.cachedSuperProps = ResourceExpressions.GetRelations(
                None, RDF_SUBPROPOF_PROP, self, 1, 0
                )
        return self.cachedSuperProps


def ContextFromKeyWord(kw):
    """Create a new context for processing, allowed params:
       model = an instance of an Ft.Rdf.Model.Model
       driver = an instance of Ft.Rdf.Drivers.*
       nsMapping = a dictionary that map prefix to namespace
       varBindings = a dictionary.  keys are a tuple of (namepsace,localName) and values are any allowed data type
       """

    defaultNs = {'rdf':RDF_MS_BASE,
                 'rdfs':RDF_SCHEMA_BASE,
                 }
    driver=None
    nsMapping = defaultNs
    varBindings = {}
    scope = None

    for name, value in kw.items():
        if name == 'driver':
            driver = value
        elif name == 'model':
            driver = value._driver
        elif name == 'nsMapping':
            nsMapping = value.copy()
            nsMapping.update(defaultNs)
        elif name == 'varBindings':
            varBindings = value
        elif name == 'scope':
            scope = value
        else:
            raise RdfException(FtRdfException.INVALID_ARGUMENT, name=name)
    if driver is None:
        raise RdfException(FtRdfException.MISSING_DRIVER)
    return Context(driver, nsMapping, varBindings, scope)


import DataTypes
TRANSITIVE_BY_RULE = [DataTypes.Resource(RDF_SCHEMA_BASE + 'subPropertyOf'),
                      DataTypes.Resource(RDF_SCHEMA_BASE + 'subClassOf')]


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