Commits

Show all
Author Commit Message Labels Comments Date
Alexander Shorin
Make MUCs work properly. Add XMPP_TIMESTAMP environ variable. Fix JIDs. Added environ XMPP_TIMESTAMP variable contains UTC based timestamp of received event or delay stamp if it was defined. This value will help to filter too old events and shows merely actual event receiving time. Fixed MUC support for SleekXMPP server and JID to unicode translation for xmpppy one. Messages now should be routed correct depending on chat type.
Branches
muc
Alexander Shorin
Tiny presense sending refactoring.
Branches
muc
Alexander Shorin
Merge with default
Branches
muc
Alexander Shorin
Imports regroup and cleanup.
Alexander Shorin
Ok, we still needs Jinja2 for templating. Probably, we should keep it - from first sight jinja produce quite a lot of overhead functional, but from second it's awesome idea to use it!
Alexander Shorin
Remove dependency from argparse.
Alexander Shorin
Fix logging import failure.
Alexander Shorin
Reduce external dependencies. Ported..ok, copy-pasted, config and logging modules from Flask project and extracted key functions and objects from werkzeug into submodule. Main reason is to reduce external dependencies and remove confusion about "why HTTP frameworks are needed for XMPP one?". Hope that I hadn't violate any copyright notes by this action.
Alexander Shorin
Add MUC support via `join_muc` command. Usage: @app.route('join <room> as <nick>') def join_muc(room, nick): return 'join_muc', {'root': room, 'nick': nick}
Branches
muc
Konstantine Rybnikov
fix for stupid bitbucket
Konstantine Rybnikov
link fixes
Konstantine Rybnikov
more fixes to docs
Konstantine Rybnikov
merge pull request #6
Konstantine Rybnikov
merge
Konstantine Rybnikov
add some thanks
Konstantine Rybnikov
old uncommited small beautifies
Brendan McCollam
Fixes bug in routing.Map.update
Alexander Shorin
Remove 'Message not understood.' response if XMPP event couldn't be routed. Primary idea was good, but it creates a lot of problems when error handler for NotFound exception is not defined (most common case) and bot receives a lot of unroutable events e.g. iq or presences. Let bot creator create his own behavior for unknown messages or events instead to decide default response behavior for him. So default behavior for unroutable event is nothing. Check up debug logs to …
Alexander Shorin
Fix presence routing for SleekXMPP - I've forgot to define XMPP_JID globaly.
Alexander Shorin
Use more handy global presence events handler for SleekXMPP. Thanks, Lance! Requires >=SleekXMPP-1.1.3 however.
Alexander Shorin
Fix broken test.
Alexander Shorin
Fix possible crush if MESSAGE variable is missed.
Alexander Shorin
Add missing presence support for SleekXMPP server.
Alexander Shorin
Reworked error handling. Now there is possible to setup custom error handlers on app side using new decorator `on_error(exception)`: @app.route('<int:a>/<int:b>') def divide(a,b): return a/b @app.on_error(ZeroDivisionError) def zero(err): return "Attempting to divide on zero - that's incorrect!" By handling xmppflask.exceptions.NotFound error you could customize default behavior for handler of unknown/unprocessed m…
Alexander Shorin
Force environ values to be unicode unless they are not strings.
Alexander Shorin
Allow responses to be None. This is useful when event handler works like counter, has too greedy route expression or requires additional actions to produce response.
Alexander Shorin
Finish presence support implementation by adding route and send functions. To route presence you need to use ``app.route_presense`` decorator in same way as ``app.route`` works. It doesn't require any parameters by default, but you could filter presence source by ``from_jid`` and ``type`` keyword arguments. To send presense just return ``'presence', payload`` response from endpoint, where payload contains presence definition data. For example, to set status against spec…
Alexander Shorin
Let notification queue be processed like common response objects.
Alexander Shorin
Add support for presence events for XMPPWSGI server. Extend environ.
Alexander Shorin
Enhance routing by new filters. Now routes could be defined with knowledge about who have sent event, what is his type and kind in additional to what those message contains. This becomes real due to new Rule arguments: event_type, from_jid and type that are binded to environ keys 'XMPP_EVENT', 'XMPP_JID', 'type' respectively. Also, message argument becomes optional, so you could route any messages, but only from specific JID fo…
  1. Prev
  2. Next