Handling meta-data

TODO :)

XSchema

class xRecord.XSchema(*args, **kwargs)
rename_mtm(old_name, new_name)
rename_child_reference(old_name, new_name)
has_child(key)
has_mtm(via_table)
has_column(column_name)
get_child(key)
get_mtm(via_table)
column_list()
columns()
pre_update(xrec, where_condition_dict, update_values_dict)
post_update(xrec)
pre_insert(xrec, insert_values_dict)
post_insert(xrec)
pre_delete(xrec, where_condition_dict)
post_delete(xrec, old_record)
initialize()
null = <unbound method XSchema.null>
default = <unbound method XSchema.default>
verbose_info

Customizing XSchema

@db.CustomXSchema("author")
class blog_entry:
      def __repr__(self):
          return self.name

      def initialize(self):
          self.rename_child_reference ( "blog_entry_author", "blog_entries")

Project Versions

Table Of Contents

Previous topic

Working with records / data rows

Next topic

Tutorial

This Page