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.schema.syntaxes.BitArrayInteger Class Reference
Inheritance diagram for web2ldap.app.schema.syntaxes.BitArrayInteger:
[legend]
Collaboration diagram for web2ldap.app.schema.syntaxes.BitArrayInteger:
[legend]

Public Member Functions

def __init__ (self, app, str dn, schema, str attrType, bytes attr_value, entry=None)
 
bytes sanitize (self, bytes attr_value)
 
str form_value (self)
 
web_forms.Field input_field (self)
 
str display (self, vidx, links)
 
bytes sanitize (self, bytes attr_value)
 
str display (self, vidx, links)
 
str form_value (self)
 
web_forms.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)
 
def __init__ (self, app, str dn, schema, str attrType, bytes attr_value, entry=None)
 
bytes sanitize (self, bytes attr_value)
 
web_forms.Field input_field (self)
 

Public Attributes

 flag_desc2int
 
 flag_int2desc
 
 max_value
 
 min_input_rows
 
 max_input_rows
 
- Public Attributes inherited from web2ldap.app.schema.syntaxes.Integer
 max_len
 

Static Public Attributes

 str
 
- Static Public Attributes inherited from web2ldap.app.schema.syntaxes.MultilineText
 str
 
 pattern = re.compile('^.*$', re.S+re.M)
 
string lineSep = b'\r\n'
 
int cols = 66
 
int min_input_rows = 1
 
int max_input_rows = 30
 
- 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.Integer
 str
 
 int
 
 min_value = None
 
 max_value = None
 
- Static Public Attributes inherited from web2ldap.app.schema.syntaxes.IA5String
 str
 

Detailed Description

Plugin class for attributes with Integer syntax where the integer
value is interpreted as binary flags

Definition at line 2259 of file syntaxes.py.

Constructor & Destructor Documentation

◆ __init__()

def web2ldap.app.schema.syntaxes.BitArrayInteger.__init__ (   self,
  app,
str  dn,
  schema,
str  attrType,
bytes  attr_value,
  entry = None 
)

Reimplemented from web2ldap.app.schema.syntaxes.Integer.

Definition at line 2271 of file syntaxes.py.

Member Function Documentation

◆ display()

◆ form_value()

str web2ldap.app.schema.syntaxes.BitArrayInteger.form_value (   self)
Transform LDAP string representations to HTML form input field
values. Returns Unicode string to be encoded with the browser's
accepted charset.

This is the inverse of LDAPSyntax.sanitize().

Reimplemented from web2ldap.app.schema.syntaxes.MultilineText.

Definition at line 2304 of file syntaxes.py.

References web2ldap.app.plugins.activedirectory.Interval.av_u, web2ldap.app.schema.syntaxes.LDAPSyntax.av_u(), web2ldap.app.plugins.activedirectory.GroupType.flag_desc_table, web2ldap.app.plugins.activedirectory.UserAccountControl.flag_desc_table, web2ldap.app.plugins.activedirectory.SystemFlags.flag_desc_table, web2ldap.app.plugins.activedirectory.SearchFlags.flag_desc_table, web2ldap.app.plugins.activedirectory.InstanceType.flag_desc_table, web2ldap.app.plugins.activedirectory.PwdProperties.flag_desc_table, web2ldap.app.plugins.activedirectory.MsDSSupportedEncryptionTypes.flag_desc_table, web2ldap.app.plugins.dhcp.DHCPDnsStatus.flag_desc_table, web2ldap.app.plugins.edirectory.EntryFlags.flag_desc_table, web2ldap.app.plugins.edirectory.NspmConfigurationOptions.flag_desc_table, web2ldap.app.plugins.exchange.MsExchRecipientTypeDetails.flag_desc_table, web2ldap.app.plugins.krb5.Krb5KDCFlagsSyntax.flag_desc_table, web2ldap.app.plugins.krb5.KrbTicketFlags.flag_desc_table, and web2ldap.app.schema.syntaxes.Integer.int.

Referenced by web2ldap.app.schema.syntaxes.DNSDomain.display(), web2ldap.app.plugins.activedirectory.LogonHours.input_field(), web2ldap.app.plugins.aedir.AEHomeDirectory.input_field(), web2ldap.app.plugins.aedir.AEUIDNumber.input_field(), web2ldap.app.plugins.aedir.AEUserUid.input_field(), web2ldap.app.plugins.aedir.AEMemberUid.input_field(), web2ldap.app.plugins.aedir.AEDerefAttribute.input_field(), web2ldap.app.plugins.aedir.AEUniqueIdentifier.input_field(), web2ldap.app.plugins.aedir.AERFC822MailMember.input_field(), web2ldap.app.plugins.aedir.AESudoHost.input_field(), web2ldap.app.schema.syntaxes.LDAPSyntax.input_field(), web2ldap.app.schema.syntaxes.Integer.input_field(), web2ldap.app.schema.syntaxes.OctetString.input_field(), web2ldap.app.schema.syntaxes.MultilineText.input_field(), web2ldap.app.schema.syntaxes.SelectList.input_field(), web2ldap.app.schema.syntaxes.BitArrayInteger.input_field(), and web2ldap.app.schema.syntaxes.ComposedAttribute.input_field().

◆ input_field()

web_forms.Field web2ldap.app.schema.syntaxes.BitArrayInteger.input_field (   self)

Reimplemented from web2ldap.app.schema.syntaxes.Integer.

Definition at line 2315 of file syntaxes.py.

References web2ldap.app.plugins.edirectory.OctetStringGUID._at, web2ldap.app.schema.syntaxes.LDAPSyntax._at, web2ldap.app.plugins.aedir.AEChildClasses.desc, web2ldap.app.plugins.subentries.AdministrativeRole.desc, web2ldap.app.plugins.activedirectory.GroupType.flag_desc_table, web2ldap.app.plugins.activedirectory.UserAccountControl.flag_desc_table, web2ldap.app.plugins.activedirectory.SystemFlags.flag_desc_table, web2ldap.app.plugins.activedirectory.SearchFlags.flag_desc_table, web2ldap.app.plugins.activedirectory.InstanceType.flag_desc_table, web2ldap.app.plugins.activedirectory.PwdProperties.flag_desc_table, web2ldap.app.plugins.activedirectory.MsDSSupportedEncryptionTypes.flag_desc_table, web2ldap.app.plugins.dhcp.DHCPDnsStatus.flag_desc_table, web2ldap.app.plugins.edirectory.EntryFlags.flag_desc_table, web2ldap.app.plugins.edirectory.NspmConfigurationOptions.flag_desc_table, web2ldap.app.plugins.exchange.MsExchRecipientTypeDetails.flag_desc_table, web2ldap.app.plugins.krb5.Krb5KDCFlagsSyntax.flag_desc_table, web2ldap.app.plugins.krb5.KrbTicketFlags.flag_desc_table, web2ldap.app.plugins.activedirectory.ObjectSID.form_value(), web2ldap.app.plugins.activedirectory.LogonHours.form_value(), web2ldap.app.plugins.aedir.AEGIDNumber.form_value(), web2ldap.app.plugins.aedir.AEUserUid.form_value(), web2ldap.app.plugins.aedir.AEMemberUid.form_value(), web2ldap.app.plugins.aedir.AEDerefAttribute.form_value(), web2ldap.app.plugins.aedir.AEUserMailaddress.form_value(), web2ldap.app.plugins.aedir.AEZonePrefixCommonName.form_value(), web2ldap.app.plugins.dhcp.DHCPRange.form_value(), web2ldap.app.plugins.dns.AssociatedDomain.form_value(), web2ldap.app.plugins.opends.OpenDSdsCfgAlternatebindDn.form_value(), web2ldap.app.plugins.openldap.OlcRootDN.form_value(), web2ldap.app.plugins.posixautogen.AutogenNumberMixIn.form_value(), web2ldap.app.plugins.posixautogen.AutogenUIDNumber.form_value(), web2ldap.app.plugins.posixautogen.AutogenGIDNumber.form_value(), web2ldap.app.plugins.samba.SambaSID.form_value(), web2ldap.app.plugins.ucs.UniventionLDAPACLData.form_value(), web2ldap.app.schema.syntaxes.LDAPSyntax.form_value(), web2ldap.app.schema.syntaxes.GeneralizedTime.form_value(), web2ldap.app.schema.syntaxes.NullTerminatedDirectoryString.form_value(), web2ldap.app.schema.syntaxes.OctetString.form_value(), web2ldap.app.schema.syntaxes.MultilineText.form_value(), web2ldap.app.schema.syntaxes.Timespan.form_value(), web2ldap.app.schema.syntaxes.BitArrayInteger.form_value(), web2ldap.app.schema.syntaxes.DNSDomain.form_value(), web2ldap.app.schema.syntaxes.RFC822Address.form_value(), web2ldap.app.schema.syntaxes.ComposedAttribute.form_value(), web2ldap.app.schema.syntaxes.OctetString.max_input_rows, web2ldap.app.schema.syntaxes.MultilineText.max_input_rows, web2ldap.app.schema.syntaxes.BitArrayInteger.max_input_rows, web2ldap.app.schema.syntaxes.Integer.max_len, web2ldap.app.plugins.aedir.AEUserUid.max_values, web2ldap.app.plugins.aedir.AEPersonAttribute.max_values, web2ldap.app.plugins.aedir.AEUserMailaddress.max_values, web2ldap.app.plugins.aedir.AEPersonMailaddress.max_values, web2ldap.app.plugins.aedir.AEDeptAttribute.max_values, web2ldap.app.plugins.aedir.AEUniqueIdentifier.max_values, web2ldap.app.plugins.aedir.AEDepartmentNumber.max_values, web2ldap.app.plugins.aedir.AECommonName.max_values, web2ldap.app.plugins.aedir.AESudoHost.max_values, web2ldap.app.plugins.dns.CNAMERecord.max_values, web2ldap.app.plugins.inetorgperson.CNInetOrgPerson.max_values, web2ldap.app.plugins.inetorgperson.DisplayNameInetOrgPerson.max_values, web2ldap.app.plugins.openldap.OlcMultilineText.min_input_rows, web2ldap.app.plugins.openldap.OlcSyncRepl.min_input_rows, web2ldap.app.schema.syntaxes.OctetString.min_input_rows, web2ldap.app.schema.syntaxes.MultilineText.min_input_rows, and web2ldap.app.schema.syntaxes.BitArrayInteger.min_input_rows.

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

◆ sanitize()

bytes web2ldap.app.schema.syntaxes.BitArrayInteger.sanitize (   self,
bytes  attr_value 
)
Transforms the HTML form input field values into LDAP string
representations and returns raw binary string.

This is the inverse of LDAPSyntax.form_value().

When using this method one MUST NOT assume that the whole entry is
present.

Reimplemented from web2ldap.app.schema.syntaxes.Integer.

Definition at line 2281 of file syntaxes.py.

References web2ldap.app.schema.syntaxes.BitArrayInteger.flag_desc2int, web2ldap.app.schema.syntaxes.Integer.int, and web2ldap.app.schema.syntaxes.BitArrayInteger.str.

Member Data Documentation

◆ flag_desc2int

web2ldap.app.schema.syntaxes.BitArrayInteger.flag_desc2int

Definition at line 2273 of file syntaxes.py.

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

◆ flag_int2desc

web2ldap.app.schema.syntaxes.BitArrayInteger.flag_int2desc

Definition at line 2274 of file syntaxes.py.

◆ max_input_rows

◆ max_value

web2ldap.app.schema.syntaxes.BitArrayInteger.max_value

◆ min_input_rows

◆ str

web2ldap.app.schema.syntaxes.BitArrayInteger.str
static

Definition at line 2264 of file syntaxes.py.

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


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