From: David L. <dav...@cs...> - 2000-07-26 00:07:56
|
Hey python-ldap developers! i've been working on adding a display template object into ldapmodule this morning. any suggestions on the API? my thought is something like this collection of attributes and methods within the _ldap module: init_templates_buf(buffer) -> LDAPDispTmplSeq <LDAPDispTmplSeq>.name2template(string) -> LDAPDispTmpl or exception .oc2template(sequence of strings) -> LDAPDispTmpl or exception .__getitem__(int) -> LDAPDispTmpl .__len__() -> int <LDAPDispTmpl>.items -> LDAPDispTmplRowSeq .tmplattrs([sequence of strings, int ,int]) -> list of strings .appdata <-> object .options -> string tuple ('addable', 'allowmodrdn', 'altview') .name -> string .pluralname -> string .iconname -> string .authattrname -> string .defrdnattrname -> string .defaddlocation -> string .oclist -> tuple of tuple of string .adddeflist -> tuple of LDAPadddeflist <LDAPDispTmplRowSeq>.__getitem__(int) -> LDAPDispTmplColSeq .__len__() -> int <LDAPDispTmplColSeq>.__getitem__(int) -> LDAPDispTmplItem .__len__() -> int <LDAPDispTmplItem>.appdata <-> object .attrname -> string .label -> string .args -> tuple of string .options -> string tuple ('readonly', 'sortvalues', ...) .syntaxid -> int <LDAPadddeflist>.attrname -> string .value -> string .source -> 'constantvalue' or 'addersdn' SYN_TYPE_TEXT -> int SYN_TYPE_IMAGE -> int SYN_TYPE... -> int TemplateError -> base exception class TemplateVersionError -> exception class TemplateSyntaxError -> exception class -- David Leonard Dav...@cs... Dept of Comp. Sci. and Elec. Engg _ Room:78-640 Ph:+61 7 336 51187 The University of Queensland |+| http://www.csee.uq.edu.au/~leonard/ QLD 4072 AUSTRALIA ~` '~ E2A24DC6446E5779D7AFC41AA04E6401 Curses! - Mojo Jojo |