LibApex

class apex.lib.libapex.EmailMessageText[source]

Default email message text class

activate()[source]

In the message body, %_url_% is replaced with:

route_url('apex_activate', request, user_id=user_id, hmac=hmac))
forgot()[source]

In the message body, %_url_% is replaced with:

route_url('apex_reset', request, user_id=user_id, hmac=hmac))
class apex.lib.libapex.RequestFactory(environ, charset=None, unicode_errors=None, decode_param_names=None, **kw)[source]

Custom Request factory, that adds the user context to request.

http://docs.pylonsproject.org/projects/pyramid_cookbook/dev/authentication.html

class apex.lib.libapex.RootFactory(request)[source]

Defines the default ACLs, groups populated from SQLAlchemy.

apex.lib.libapex.apex_email(request, recipients, subject, body, sender=None)[source]

Sends email message

apex.lib.libapex.apex_settings(key=None, default=None)[source]

Gets an apex setting if the key is set. If no key it set, returns all the apex settings.

Some settings have issue with a Nonetype value error, you can set the default to fix this issue.

apex.lib.libapex.apexid_from_token(token)[source]

Returns the apex id from the OpenID Token

apex.lib.libapex.create_user(**kwargs)[source]
from apex.lib.libapex import create_user

create_user(username='test', password='my_password', active='Y', group='group')


Returns: AuthUser object
apex.lib.libapex.generate_velruse_forms(request, came_from)[source]

Generates variable form based on OpenID providers supported in the CONFIG.yaml file

apex.lib.libapex.get_module(package)[source]

Returns a module based on the string passed

apex.lib.libapex.groupfinder(userid, request)[source]

Returns ACL formatted list of groups for the userid in the current request

Previous topic

Library Functions

Next topic

Subscribers

This Page