web2ldap  1.7.7
About: web2ldap is a full-featured web-based LDAPv3 client.
  Fossies Dox: web2ldap-1.7.7.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

web2ldap.app.plugins.aedir.AEUserMailaddress Class Reference
Inheritance diagram for web2ldap.app.plugins.aedir.AEUserMailaddress:
[legend]
Collaboration diagram for web2ldap.app.plugins.aedir.AEUserMailaddress:
[legend]

Public Member Functions

Dict[str, strget_attr_value_dict (self)
 
str display (self, vidx, links)
 
str form_value (self)
 
List[bytes] transmute (self, List[bytes] attr_values)
 
Field input_field (self)
 
List[bytes] transmute (self, List[bytes] attr_values)
 
str form_value (self)
 
Field input_field (self)
 
str display (self, vidx, links)
 
- Public Member Functions inherited from web2ldap.app.schema.syntaxes.LDAPSyntax
def __init__ (self, app, Optional[str] dn, SubSchema schema, Optional[str] attrType, Optional[bytes] attr_value, entry=None)
 
def dn (self)
 
def av_u (self)
 
bytes sanitize (self, bytes attr_value)
 
List[bytes] transmute (self, List[bytes] attr_values)
 
def validate (self, bytes attr_value)
 
str value_button (self, command, row, mode, link_text=None)
 
str form_value (self)
 
def input_fields (self)
 
web_forms.Field input_field (self)
 
str display (self, vidx, links)
 
- Public Member Functions inherited from web2ldap.app.schema.syntaxes.RFC822Address
def __init__ (self, app, str dn, schema, str attrType, bytes attr_value, entry=None)
 
str form_value (self)
 
bytes sanitize (self, bytes attr_value)
 
bytes sanitize (self, bytes attr_value)
 
str form_value (self)
 
str display (self, vidx, links)
 
Dict[str, strget_attr_value_dict (self)
 
str display (self, vidx, links)
 
web_forms.Field input_field (self)
 

Static Public Attributes

 str
 
int max_values = 1
 
bool input_fallback = False
 
tuple sani_funcs
 
 structural_oc_oids
 
- Static Public Attributes inherited from web2ldap.app.plugins.aedir.AEPersonAttribute
 str
 
int max_values = 1
 
string deref_object_class = 'aePerson'
 
string deref_attribute_type = 'aePerson'
 
- Static Public Attributes inherited from web2ldap.app.plugins.aedir.AEDerefAttribute
 str
 
 int
 
- Static Public Attributes inherited from web2ldap.app.schema.syntaxes.DirectoryString
 str
 
string html_tmpl = '{av}'
 
- Static Public Attributes inherited from web2ldap.app.schema.syntaxes.LDAPSyntax
 str
 
 int
 
 bool
 
- Static Public Attributes inherited from web2ldap.app.schema.syntaxes.RFC822Address
 str
 
 pattern = re.compile(r'^[\w@.+=/_ ()-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*$')
 
string html_tmpl = '<a href="mailto:{av}">{av}</a>'
 
- Static Public Attributes inherited from web2ldap.app.schema.syntaxes.DNSDomain
 str
 
 pattern = re.compile(r'^(\*|[a-zA-Z0-9_-]+)(\.[a-zA-Z0-9_-]+)*$')
 
 int
 
tuple sani_funcs
 
- Static Public Attributes inherited from web2ldap.app.schema.syntaxes.IA5String
 str
 
- Static Public Attributes inherited from web2ldap.app.schema.syntaxes.SelectList
 str
 
 bool
 

Private Member Functions

def _is_mail_account (self)
 
bool _validate (self, bytes attr_value)
 

Detailed Description

Plugin class for attribute 'mail' in aeUser entries

For primary mail user accounts this contains one of
the values in attribute 'mailLocalAddress'.

Definition at line 1688 of file aedir.py.

Member Function Documentation

◆ _is_mail_account()

◆ _validate()

bool web2ldap.app.plugins.aedir.AEUserMailaddress._validate (   self,
bytes  attr_value 
)
private
check the syntax of attr_value

Implementors can overload this method to apply arbitrary syntax checks.

Reimplemented from web2ldap.app.schema.syntaxes.SelectList.

Definition at line 1715 of file aedir.py.

References web2ldap.app.plugins.aedir.AEUserMailaddress._is_mail_account().

Referenced by web2ldap.app.schema.syntaxes.Image.sanitize(), and web2ldap.app.schema.syntaxes.LDAPSyntax.validate().

◆ display()

str web2ldap.app.plugins.aedir.AEUserMailaddress.display (   self,
  vidx,
  links 
)

Reimplemented from web2ldap.app.schema.syntaxes.SelectList.

Definition at line 1720 of file aedir.py.

◆ form_value()

◆ get_attr_value_dict()

◆ input_field()

Field web2ldap.app.plugins.aedir.AEUserMailaddress.input_field (   self)

◆ transmute()

List[bytes] web2ldap.app.plugins.aedir.AEUserMailaddress.transmute (   self,
List[bytes]  attr_values 
)
This method can be implemented to transmute attribute values and has
to handle LDAP string representations (raw binary strings).

This method has access to the whole entry after processing all input.

Implementors should be prepared that this method could be called
more than once. If there's nothing to change then simply return the
same value list.

Exceptions KeyError or IndexError are caught by the calling code to
re-iterate invoking this method.

Reimplemented from web2ldap.app.plugins.aedir.AEDerefAttribute.

Definition at line 1728 of file aedir.py.

References web2ldap.app.schema.syntaxes.LDAPSyntax._entry, and web2ldap.app.plugins.aedir.AEUserMailaddress._is_mail_account().

Member Data Documentation

◆ input_fallback

bool web2ldap.app.plugins.aedir.AEUserMailaddress.input_fallback = False
static

Definition at line 1697 of file aedir.py.

Referenced by web2ldap.app.schema.syntaxes.SelectList.input_field().

◆ max_values

◆ sani_funcs

tuple web2ldap.app.plugins.aedir.AEUserMailaddress.sani_funcs
static
Initial value:
= (
bytes.strip,
bytes.lower,
)

Definition at line 1698 of file aedir.py.

Referenced by web2ldap.app.schema.syntaxes.LDAPSyntax.sanitize().

◆ str

web2ldap.app.plugins.aedir.AEUserMailaddress.str
static

Definition at line 1695 of file aedir.py.

◆ structural_oc_oids

web2ldap.app.plugins.aedir.AEUserMailaddress.structural_oc_oids
static

Definition at line 1749 of file aedir.py.


The documentation for this class was generated from the following file: