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

Public Member Functions

bytes sanitize (self, bytes attr_value)
 
str display (self, vidx, links)
 
- Public Member Functions inherited from web2ldap.app.schema.syntaxes.Binary
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)
 

Static Public Attributes

 str
 
 imageFormat = None
 
int inline_maxlen = 630
 
- Static Public Attributes inherited from web2ldap.app.schema.syntaxes.Binary
 str
 
 bool
 
- Static Public Attributes inherited from web2ldap.app.schema.syntaxes.LDAPSyntax
 str
 
 int
 
 bool
 

Private Member Functions

bool _validate (self, bytes attr_value)
 

Detailed Description

Plugin base class for attributes containing image data.

Definition at line 1132 of file syntaxes.py.

Member Function Documentation

◆ _validate()

bool web2ldap.app.schema.syntaxes.Image._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.LDAPSyntax.

Definition at line 1143 of file syntaxes.py.

References web2ldap.app.schema.syntaxes.Image.imageFormat, and web2ldap.app.schema.syntaxes.JPEGImage.imageFormat.

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

◆ display()

◆ sanitize()

bytes web2ldap.app.schema.syntaxes.Image.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.LDAPSyntax.

Definition at line 1146 of file syntaxes.py.

References web2ldap.app.plugins.activedirectory.ObjectSID._validate(), web2ldap.app.plugins.activedirectory.LogonHours._validate(), web2ldap.app.plugins.activedirectory.DNWithOctetString._validate(), web2ldap.app.plugins.activedirectory.MsDSReplAttributeMetaData._validate(), web2ldap.app.plugins.aedir.AEHomeDirectory._validate(), web2ldap.app.plugins.aedir.AEGroupMember._validate(), web2ldap.app.plugins.aedir.AEMemberUid._validate(), web2ldap.app.plugins.aedir.AEPerson._validate(), web2ldap.app.plugins.aedir.AEUserMailaddress._validate(), web2ldap.app.plugins.aedir.AEPersonMailaddress._validate(), web2ldap.app.plugins.aedir.AEHostname._validate(), web2ldap.app.plugins.aedir.AEZonePrefixCommonName._validate(), web2ldap.app.plugins.aedir.AENotAfter._validate(), web2ldap.app.plugins.aedir.AEStatus._validate(), web2ldap.app.plugins.dhcp.DHCPRange._validate(), web2ldap.app.plugins.dns.AssociatedDomain._validate(), web2ldap.app.plugins.dns.SSHFPRecord._validate(), web2ldap.app.plugins.dyngroup.MemberUrl._validate(), web2ldap.app.plugins.edirectory.OctetStringGUID._validate(), web2ldap.app.plugins.msperson.EuVATId._validate(), web2ldap.app.plugins.nis.GidNumber._validate(), web2ldap.app.plugins.nis.MemberUID._validate(), web2ldap.app.plugins.openldap.OlcSchemaDescription._validate(), web2ldap.app.plugins.openldap.ReqMod._validate(), web2ldap.app.plugins.opensshlpk.SshPublicKey._validate(), web2ldap.app.plugins.pgpkeysrv.OtherPgpCertID._validate(), web2ldap.app.plugins.ppolicy.PwdAttribute._validate(), web2ldap.app.plugins.ppolicy.PwdAccountLockedTime._validate(), web2ldap.app.plugins.schac.SchacYearOfBirth._validate(), web2ldap.app.schema.syntaxes.LDAPSyntax._validate(), web2ldap.app.schema.syntaxes.Audio._validate(), web2ldap.app.schema.syntaxes.DirectoryString._validate(), web2ldap.app.schema.syntaxes.DistinguishedName._validate(), web2ldap.app.schema.syntaxes.NameAndOptionalUID._validate(), web2ldap.app.schema.syntaxes.IA5String._validate(), web2ldap.app.schema.syntaxes.GeneralizedTime._validate(), web2ldap.app.schema.syntaxes.NullTerminatedDirectoryString._validate(), web2ldap.app.schema.syntaxes.Integer._validate(), web2ldap.app.schema.syntaxes.IPHostAddress._validate(), web2ldap.app.schema.syntaxes.IPNetworkAddress._validate(), web2ldap.app.schema.syntaxes.Image._validate(), web2ldap.app.schema.syntaxes.Date._validate(), web2ldap.app.schema.syntaxes.DateOfBirth._validate(), web2ldap.app.schema.syntaxes.SelectList._validate(), web2ldap.app.schema.syntaxes.DynamicValueSelectList._validate(), web2ldap.app.schema.syntaxes.DynamicDNSelectList._validate(), web2ldap.app.schema.syntaxes.Boolean._validate(), web2ldap.app.schema.syntaxes.JSONValue._validate(), web2ldap.app.schema.syntaxes.XmlValue._validate(), web2ldap.app.schema.syntaxes.SchemaDescription._validate(), web2ldap.app.schema.syntaxes.Image.imageFormat, and web2ldap.app.schema.syntaxes.JPEGImage.imageFormat.

Member Data Documentation

◆ imageFormat

web2ldap.app.schema.syntaxes.Image.imageFormat = None
static

◆ inline_maxlen

int web2ldap.app.schema.syntaxes.Image.inline_maxlen = 630
static

Definition at line 1141 of file syntaxes.py.

Referenced by web2ldap.app.schema.syntaxes.Image.display().

◆ str

web2ldap.app.schema.syntaxes.Image.str
static

Definition at line 1136 of file syntaxes.py.


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