Panda3D
Public Member Functions | Public Attributes

scriptresource Class Reference

Inheritance diagram for scriptresource:
pythonresource resource moduleresource

List of all members.

Public Member Functions

def __init__
def __cmp__
def __getattr__
def __repr__
def asBinary
def asFilter
def asSource
def contents
def dependencies

Public Attributes

 binaries
 modules
 name
 path
 typ

Detailed Description

A top-level python resource.

    Has (lazily computed) attributes, modules and binaries, which together
    are the scripts dependencies() 

Constructor & Destructor Documentation

def __init__ (   self,
  name,
  fullname 
)

Reimplemented in moduleresource.


Member Function Documentation

def __cmp__ (   self,
  other 
) [inherited]
def __getattr__ (   self,
  name 
)
def __repr__ (   self) [inherited]
def asBinary (   self) [inherited]
Return self in binary form.

   Base implementation returns self

Reimplemented in moduleresource.

def asFilter (   self)
Return a ModFilter based on self.

Reimplemented from resource.

def asSource (   self)
Return self as a dataresource (ie, a text file wrapper).

Reimplemented from resource.

Reimplemented in moduleresource.

def contents (   self) [inherited]
A list of resources within this resource.

   Overridable.
   Base implementation returns [self]
def dependencies (   self)
Return all dependencies (Python and binary) of self.

Reimplemented from resource.


Member Data Documentation

name [inherited]
path [inherited]
typ [inherited]
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties