class I2(_I1): "I2 doc" a1 = Attribute('a1') a2 = Attribute('a2', 'a2 doc') def f21(): "f21 doc" def f22(): pass def f23(): "f23 doc"
class IComposite(Interface): """An object whose rendering is composed of a layout and elements. """ slots = Attribute("An ISlotGenerator.") def __call__(): """Renders the composite as a string.
class IRDBMSConnection(Interface): """Interface of basic RDBMS connections. This interface provides only relatively basic operations. Create subinterfaces for complex and vendor-specific extensions. """ module = Attribute("module", "The DB-API module") connector = Attribute("connector", "The shared DB-API connection") def define_table(name, schema): """Creates and returns an IRDBMSTable. Does not create the table in the database. table.create() creates the table. """ def get_table(name): """Returns a previously defined IRDBMSTable.""" def exists(name, type_name): """Returns true if the specified database object exists. 'name' is the name of the object. 'type_name' is 'table' or 'sequence'. """ def list_table_names(): """Returns a list of existing table names.""" def create_sequence(name, start=1): """Creates a sequence.""" def reset_sequence(name, start=1): """Resets a sequence to a starting value.""" def increment(name): """Increments a sequence and returns the value. Whether the value is before or after the increment is not specified. """ def clear_table(name): """Removes all rows from a table.
class IRDBMSColumn(IColumnSchema): """A column associated with a specific database.""" use_conversion = Attribute("use_conversion", "True if this column needs to convert values.") def to_db(value): """Converts a generic value to a database-specific value.""" def from_db(value): """Converts a database-specific value to a generic value."""
class FooInterface(Interface): """ This is an Abstract Base Class """ foobar = Attribute("fuzzed over beyond all recognition") def aMethod(foo, bar, bingo): """ This is aMethod """ def anotherMethod(foo=6, bar="where you get sloshed", bingo=(1,3,)): """ This is anotherMethod """ def wammy(zip, *argues): """ yadda yadda """ def useless(**keywords): """ useless code is fun! """
class _I1(Interface): a1 = Attribute("This is an attribute") def f11(): pass def f12(): pass
class ITracebackSupplement(Interface): """Provides valuable information to supplement an exception traceback. The interface is geared toward providing meaningful feedback when exceptions occur in user code written in mini-languages like Zope page templates and restricted Python scripts. """ source_url = Attribute( 'source_url', """Optional. Set to URL of the script where the exception occurred. Normally this generates a URL in the traceback that the user can visit to manage the object. Set to None if unknown or not available. """ ) object = Attribute( 'object', """Optional. Set to the script or template where the exception occurred. Set to None if unknown or not available. """ ) line = Attribute( 'line', """Optional. Set to the line number (>=1) where the exception occurred. Set to 0 or None if the line number is unknown. """ ) column = Attribute( 'column', """Optional. Set to the column offset (>=0) where the exception occurred. Set to None if the column number is unknown. """ ) expression = Attribute( 'expression', """Optional. Set to the expression that was being evaluated. Set to None if not available or not applicable. """ ) warnings = Attribute( 'warnings', """Optional. Set to a sequence of warning messages. Set to None if not available, not applicable, or if the exception itself provides enough information. """ ) def getInfo(as_html=0): """Optional. Returns a string containing any other useful info.