!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/pyshared/gdata/codesearch/   drwxr-xr-x
Free 130.06 GB of 142.11 GB (91.52%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     __init__.py (4.82 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2007 Benoit Chesneau <benoitc@metavers.net>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.


"""Contains extensions to Atom objects used by Google Codesearch"""

__author__ = 'Benoit Chesneau'


import atom
import gdata


CODESEARCH_NAMESPACE='http://schemas.google.com/codesearch/2006'
CODESEARCH_TEMPLATE='{http://shema.google.com/codesearch/2006}%s'


class Match(atom.AtomBase):
    """ The Google Codesearch match element """
    _tag = 'match'
    _namespace = CODESEARCH_NAMESPACE
    _children = atom.AtomBase._children.copy()
    _attributes = atom.AtomBase._attributes.copy()
    _attributes['lineNumber'] = 'line_number'
    _attributes['type'] = 'type'

    def __init__(self, line_number=None, type=None, extension_elements=None,
            extension_attributes=None, text=None):
        self.text = text
        self.type = type
        self.line_number = line_number 
        self.extension_elements = extension_elements or []
        self.extension_attributes = extension_attributes or {}


class File(atom.AtomBase):
    """ The Google Codesearch file element"""
    _tag = 'file'
    _namespace = CODESEARCH_NAMESPACE
    _children = atom.AtomBase._children.copy()
    _attributes = atom.AtomBase._attributes.copy()
    _attributes['name'] = 'name'

    def __init__(self, name=None, extension_elements=None,
            extension_attributes=None, text=None):
        self.text = text
        self.name = name
        self.extension_elements = extension_elements or []
        self.extension_attributes = extension_attributes or {}


class Package(atom.AtomBase):
    """ The Google Codesearch package element"""
    _tag = 'package'
    _namespace = CODESEARCH_NAMESPACE
    _children = atom.AtomBase._children.copy()
    _attributes = atom.AtomBase._attributes.copy()
    _attributes['name'] = 'name'
    _attributes['uri'] = 'uri'

    def __init__(self, name=None, uri=None, extension_elements=None,
            extension_attributes=None, text=None):
        self.text = text
        self.name = name
        self.uri = uri
        self.extension_elements = extension_elements or []
        self.extension_attributes = extension_attributes or {}


class CodesearchEntry(gdata.GDataEntry):
    """ Google codesearch atom entry"""
    _tag = gdata.GDataEntry._tag
    _namespace = gdata.GDataEntry._namespace
    _children = gdata.GDataEntry._children.copy()
    _attributes = gdata.GDataEntry._attributes.copy()
    
    _children['{%s}file' % CODESEARCH_NAMESPACE] = ('file', File)
    _children['{%s}package' % CODESEARCH_NAMESPACE] = ('package', Package)
    _children['{%s}match' % CODESEARCH_NAMESPACE] = ('match', [Match])
    
    def __init__(self, author=None, category=None, content=None,
            atom_id=None, link=None, published=None, 
            title=None, updated=None, 
            match=None, 
            extension_elements=None, extension_attributes=None, text=None):
        
        gdata.GDataEntry.__init__(self, author=author, category=category, 
                content=content, atom_id=atom_id, link=link, 
                published=published, title=title, 
                updated=updated, text=None)

        self.match = match or []


def CodesearchEntryFromString(xml_string):
    """Converts an XML string into a CodesearchEntry object.

    Args:
        xml_string: string The XML describing a Codesearch feed entry.

    Returns:
        A CodesearchEntry object corresponding to the given XML.
    """
    return atom.CreateClassFromXMLString(CodesearchEntry, xml_string)


class CodesearchFeed(gdata.GDataFeed):
    """feed containing list of Google codesearch Items"""
    _tag = gdata.GDataFeed._tag
    _namespace = gdata.GDataFeed._namespace
    _children = gdata.GDataFeed._children.copy()
    _attributes = gdata.GDataFeed._attributes.copy()
    _children['{%s}entry' % atom.ATOM_NAMESPACE] = ('entry', [CodesearchEntry])

    
def CodesearchFeedFromString(xml_string):
    """Converts an XML string into a CodesearchFeed object.
    Args:
    xml_string: string The XML describing a Codesearch feed.
    Returns:
    A CodeseartchFeed object corresponding to the given XML.
    """
    return atom.CreateClassFromXMLString(CodesearchFeed, xml_string)

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