Commit Graph

815 Commits

Author SHA1 Message Date
Lukasz Langa
b230601ee2 elementtree in Python 2.x would rather receive encoded strings. 2011-05-24 15:09:37 +02:00
Guillaume Ayoub
ca9c148705 Set calendars always personal with authentication activated 2011-05-17 00:10:36 +02:00
Guillaume Ayoub
7c0e9686a8 Minor typo fix 2011-05-15 19:53:40 +02:00
Guillaume Ayoub
06f1987975 Add an option to store PID in daemon mode 2011-05-13 22:50:55 +02:00
Guillaume Ayoub
bd2c50dadf Log user login instead of calendar owner for sucessful accesses 2011-05-13 22:26:53 +02:00
Guillaume Ayoub
e7ba2ab78b Register XML namespaces cleanly with Python 2.7+ and 3.2+
The old code was relying on a largely used but private variable.
Moreover, it was bugged with the empty string for "D", adding ":"
instead of nothing at the beginning of tag names with Python 2.6,
3.0 and 3.1, breaking at least the Lightning support.

This new code still relies on the private variable for old
Python versions, but uses the good-way™ for actual and future
versions. No default namespace is used for old versions, but
that's not that bad.
2011-05-13 22:03:50 +02:00
Guillaume Ayoub
9729501130 Minor typo fix in the logging configuration file 2011-05-13 10:40:25 +02:00
Guillaume Ayoub
261ea03518 Add full_environment in configuration module 2011-05-13 10:15:21 +02:00
Guillaume Ayoub
4f3b574e35 Minor typo fixes 2011-05-13 10:13:56 +02:00
Guillaume Ayoub
70e66ed070 Merge commit 'refs/merge-requests/10' of git://gitorious.org/radicale/radicale into merge-requests/10 2011-05-12 17:31:32 +02:00
Łukasz Mierzwa
d49776af8d just a small logging fix so that we got 'anonymous user' in logs instead of calendar owner if user is not authenticated 2011-05-11 22:12:10 +02:00
Guillaume Ayoub
5a0f841968 Revert "Remove useless calls to _tag", that was breaking the pretty namespaces
This reverts commit 3b17ed2969.
2011-05-11 18:12:23 +02:00
Lukasz Langa
6ba69f22a4 Pretty formatting and filtering of environment variables. 2011-05-11 17:09:44 +02:00
Lukasz Langa
ae0851be35 treat the DAV namespace as default (XML output is nicer) 2011-05-11 16:24:55 +02:00
Lukasz Langa
663fda4ecb add the Apple iCal namespace to registry 2011-05-11 16:24:20 +02:00
Lukasz Langa
afcfb11fde Revert "Remove useless calls to _tag"
This reverts commit 3b17ed2969.
2011-05-11 15:05:23 +02:00
Lukasz Langa
d228bcbad2 report needs a content-type as well. 2011-05-11 14:57:27 +02:00
Guillaume Ayoub
8f2335093d Always return pretty XML 2011-05-11 11:20:39 +02:00
Guillaume Ayoub
0328b2244b Use the internal decoder to log requests 2011-05-11 08:43:03 +02:00
Guillaume Ayoub
3b17ed2969 Remove useless calls to _tag 2011-05-11 08:39:32 +02:00
Guillaume Ayoub
ac83dadc9c Typo fix 2011-05-11 08:13:33 +02:00
Guillaume Ayoub
77ab37c49c Enhance readability 2011-05-11 06:56:34 +02:00
Guillaume Ayoub
58c6fe399c Cut a long line 2011-05-11 06:50:17 +02:00
Guillaume Ayoub
6121bc882a Disable a useless pylint warning 2011-05-11 06:37:30 +02:00
Guillaume Ayoub
ce362e1b50 Drop Python 2.5 support 2011-05-11 06:21:35 +02:00
Guillaume Ayoub
aacfa8ff46 Various minor typo fixes 2011-05-11 06:19:05 +02:00
Guillaume Ayoub
7e1815cbeb Merge commit 'refs/merge-requests/9' of git://gitorious.org/radicale/radicale into merge-requests/9 2011-05-11 05:01:00 +02:00
Lukasz Langa
485e375139 Minor py3k compatibility changes: iteritems() doesn't exist on Python 3.x, logged text must be Unicode. 2011-05-10 19:16:03 +02:00
Guillaume Ayoub
2830afd71d Allow authentication before LDAP searches (patch from Łukasz) 2011-05-10 14:45:54 +02:00
Lukasz Langa
0d8fa5db6b More deprecation fixes
xmlutils.py:116: DeprecationWarning: This method will be removed in future
                 versions.  Use 'list(elem)' or iteration over elem instead.
prop_list = prop_element.getchildren()
2011-05-10 14:21:13 +02:00
Lukasz Langa
4230ec2fa9 Use pretty namespace prefixes in output. 2011-05-09 17:02:31 +02:00
Lukasz Langa
32b01d60fc in debug mode, prettify XML output for analysis 2011-05-09 16:51:58 +02:00
Lukasz Langa
6b5db413c5 logging and debugging fixes
* optparse values may not be strings, ConfigParser requires strings

* forcing DEBUG level should work for all handlers regardless of configuration
  source (file, command line options)
2011-05-09 16:43:41 +02:00
Lukasz Langa
4212f6dfe0 the replaced syntax is deprecated 2011-05-09 14:04:17 +02:00
Lukasz Langa
00fb296ed7 take encryption function from globals() rather than locals() 2011-05-09 13:56:53 +02:00
Guillaume Ayoub
0171690af5 Set personal calendars in the default configuration 2011-05-09 00:12:22 +02:00
Guillaume Ayoub
53562961b0 Set personal calendars by default 2011-05-09 00:09:01 +02:00
Guillaume Ayoub
44b11db1ae Typo fix in a logging message 2011-05-07 14:32:21 +02:00
Guillaume Ayoub
c0c8ab6bc7 Typo fix in logging default file 2011-05-07 13:42:58 +02:00
Guillaume Ayoub
899379d073 Add a default logging configuration file, and small typo fixes 2011-05-07 12:52:54 +02:00
Guillaume Ayoub
e87ffeadb1 Remove default request logging 2011-05-07 12:18:32 +02:00
Guillaume Ayoub
f39d90caa9 Catch all LDAP exceptions 2011-05-06 17:11:13 +02:00
Guillaume Ayoub
51853a22bc Manage empty strings for CONTENT_LENGTH header 2011-05-06 15:02:29 +02:00
Guillaume Ayoub
a2f1e173d6 Clean code and add comments using pylint 2011-05-01 20:36:39 +02:00
Guillaume Ayoub
2be5af3ad0 Update news and todo files 2011-05-01 19:23:24 +02:00
Guillaume Ayoub
0b23df9626 Add a default FastCGI executable (closes #179) 2011-05-01 19:09:02 +02:00
Guillaume Ayoub
421189e263 Get CONTENT_LENGTH as it may be absent 2011-05-01 19:08:15 +02:00
Guillaume Ayoub
0202756540 Cast header item into list for Python 3.x compatibility 2011-05-01 17:51:27 +02:00
Guillaume Ayoub
882d70e2cb Make the HTTPServer class inherit from object 2011-05-01 16:45:04 +02:00
Guillaume Ayoub
6389411edd Add support for SSL back 2011-05-01 15:25:52 +02:00