Commit Graph

282 Commits

Author SHA1 Message Date
alexhudson 54dad69d08 Fix PUT in Sundial - incorrect use of Store protocol exposing bug #9890 2007-08-29 13:19:00 +00:00
jonnylamb 5649d54cbd * Change URL scheme to use filenames instead of bongoIds. As a result, creating new events now works.
* Simplified PUT handler.
2007-08-29 01:35:02 +00:00
jonnylamb ab5d4cb630 * Switch off debugging output by default. It just eats up the terminal window. 2007-08-18 18:25:48 +00:00
jonnylamb 8630a95a6e * Implemented a small bit of PUT:
+ Modifying existing events works.
   + Adding new events is not implemented.
   + There is no error checking at the moment.
 * A fair number of cleanups around the Sundial code. Thanks to lamby for pointing these out:
   + Renamed lxml.etree instance from ET to et.
   + Changed comparisons with "None" to use "is" or "is not", instead of "==" or "!=" respectively.
   + Changed bit long strings being +'d together to formatted strings.
   + Moved SundialHandler and SundialPath to "new-style" Python objects.
 * Removed sneaky cElementTree call in SundialPath.
2007-08-18 18:19:56 +00:00
jonnylamb e14ba20ed9 * Fix GET requests (for now). Unicode characters are still replaced with ? which sucks big time. However, now they actually display in Evolution, which is quite useful. 2007-08-17 23:01:45 +00:00
jonnylamb 3037ba6f17 * Removed dependancy on cElementTree. lxml.etree is now used. Find me if you want to discuss why I did this.
* Removed the ElementTree-specific function, set_prefixes.
   + Namespaces are handled differently now. They use the xmlns="foo" default namespace attribute.
   + Therefore, there are no more C:tag or D:tag tags around.
2007-08-13 23:11:12 +00:00
jonnylamb 2da950507f * Added DELETE support.
* Added small hack to make GET work again. This is a rather serious TODO.
2007-08-13 22:56:49 +00:00
jonnylamb 01fd763518 * Move filename parsing stuff to SundialPath.
+ rp.fileuid now contains the file UID of the request.
 * Implement D:getetag in PROPFIND.
 * Implement using file resources in PROPFIND.
2007-08-13 18:56:29 +00:00
jonnylamb 13a36230dd Small fixes to REPORT handler:
* Now that the calendar data comes in unicode, make sure it can be md5'd.
 * Make sure to include the <?xml header on sending out XML data.
2007-08-13 16:38:26 +00:00
alexhudson 588750dee6 Fix comment style in tests.c 2007-08-13 15:29:09 +00:00
alexhudson 19ad37aaa5 * Add a test library which produces ASCII and Unicode strings
* Attempt our new unicode technique on JsonToIcal() - should now return unicode
2007-08-12 10:45:35 +00:00
jonnylamb beb3c38b89 * Use urllib.unquote to make the calendar name pretty again. It gets screwed up by calendar clients.
* Moved get_hostname() from ReportHandler to SundialPath so more handlers can use it
   + Updated PROPFIND so it uses rp.get_hostname() for <D:href>
 * General switching around of stuff in the REPORT handler, to be more flexible. It was unnecessarily regid before.
   + This description is vague, so view the diff in context to understand!
2007-08-11 18:32:57 +00:00
jonnylamb 182f4e9e4e Fixed the PROPFIND request so that it only returns C:calendar as the D:resourcetype when the resource in question is /actually/ a calendar, according to the store. 2007-08-11 11:01:45 +00:00
jonnylamb 19da4f5d11 * Slight fix to authentication issue. Handling the actual HTTP basic authentication should still be sorted though.
* Change location of store connection, as there's no point in connecting if no username+password has been entered.
   This moves StoreClient from __init__ to do_$(METHOD), if this makes any sense.
2007-08-11 09:54:47 +00:00
jonnylamb 8fc19c1d12 * Added support for single-calendar requests. Getting *all* events from now on is not allowed.
* As a result, a URI parsing function was implemented in SundialPath, to extract the relevant information.
 * Method views were updated to access the right store and other small URI updates.
2007-08-10 01:43:25 +00:00
jonnylamb ff39902139 Solved the Evolution problem, for now, by giving definite URLs to Evolution, and relative URLs to non-Evolution clients. 2007-08-09 11:17:49 +00:00
jonnylamb 572aecf3e3 Some minor implementations and cleanups. Evolution support now works with a slight adjustment.
* Clean up little typo in bongo-standalone.
 * Implement GET properly, even with some error handling.
 * Make OPTIONS require auth, otherwise the current auth handling system will fail miserably.
   This really should be off, but the authenhandler will be updated soon, and modernised.
 * Implement C:is-defined filter, if I can call that an implementation.
 * Add a TODO about different URL support in Evolution.
2007-08-09 01:31:38 +00:00
jonnylamb 8eb18fb855 * Removed a silly sys.path.append line that's only really meant for my testing setup.
* Removed debugging output on each request as it piles up the bongo-standalone window.
  It is only commented out though.
2007-08-08 02:28:51 +00:00
jonnylamb e6492781e5 Added beginnings of Sundial:
* Updated bongo-standalone to accept /dav/.
 * Added some views and handlers for Sundial.
   + GET view is hugely unsupported and is completely out-of-date and static.
   + PROPFIND view has the roots in, but has very very minor support for any prop
     requests.
   + OPTIONS is a total lie, but is implemented.
   + REPORT is the most advanced here, as it's the most important. There is still
     much to do here though. Perhaps separate this into different files later on
	 if things get too bloated.
 * Implemented get_basic_auth_pw() in bongo.commonweb.Standalone.HttpRequest.
 * Added bongo.commonweb.ElementTree with some helper functions.
2007-08-08 02:22:35 +00:00
jonnylamb 213464068c Added Sundial branch. 2007-08-07 23:48:48 +00:00
alexhudson 95aa64d386 Remove python/bongo/Makefile, stops dist tarballs building. 2007-07-31 08:55:39 +00:00
halex 3b1507bc7b Users without a valid From name doesn't crash the composer anymore. This really doesn't fix any 'problem' with prefs, more of a workaround. 2007-07-31 07:54:07 +00:00
halex 2d37fb62db Note to self: mistakenly serialising page elements is bad. 2007-07-30 09:34:38 +00:00
halex 5eb4f67e99 * Fixes the User-Agent from mails sent via Dragonfly.
* Adds a new HTML composer - plain-text does not work at the moment.
* Adds plugins code; note that this is not hooked up _at all_, I was just merely too lazy to checkout a clean version, modify the patch, apply and commit. This will be *sure to change very soon*.
2007-07-28 10:28:56 +00:00
alexhudson cb74eae670 Correct file closing logic for QRETR 2007-07-27 17:06:03 +00:00
alexhudson 9c52b028ae Missed initializing a file handle, oops 2007-07-27 16:22:58 +00:00
alexhudson 785476ba0f Even more stringent file checking in the queue 2007-07-27 16:01:37 +00:00
trisk da1c898909 * Add rule for missing src/libs/python/bongo/Makefile.
* Don't remove bongo-python-wrapper in clean, it's generated by config.status.
2007-07-26 13:35:00 +00:00
trisk f37e40d9aa * Fix some obvious bugs in smtpd's remote host resolution. 2007-07-26 13:31:26 +00:00
alexhudson c8f9670d70 Fixed a bug in a temporary file handle, and made the file open/close checks more correct 2007-07-26 10:38:10 +00:00
halex 50617cbc10 Un-breaks the composer. Requires you RE-SAVE YOUR PREFS. 2007-07-26 09:25:18 +00:00
alexhudson a289b56729 Remove some DMC cruft we missed 2007-07-25 20:20:29 +00:00
alexhudson 8ed1e89fe1 A couple of compiler blatherings fixed. 2007-07-25 19:50:19 +00:00
alexhudson ce0211995d Instrument the queue with some file checking. 2007-07-25 19:46:18 +00:00
alexhudson 05e8852440 Minor logic nit in assertion :D 2007-07-25 19:45:49 +00:00
alexhudson deb78542ce smtp now correctly logs, slight change to API used in queue 2007-07-25 18:01:27 +00:00
alexhudson cf114834d9 Put some logging and assertions into the queue 2007-07-25 17:37:14 +00:00
alexhudson 5878c5116e Another attempt at detecting the CLucene API "correctly" 2007-07-25 16:31:43 +00:00
alexhudson 18441d2231 Hopefully get the API right on more versions of clucene 2007-07-24 22:42:16 +00:00
halex f5b85d0515 Fixes the From: address with a sender name specified in the preferences. 2007-07-23 10:44:32 +00:00
halex fbde82b235 * Fix logged out message.
* Dragonfly version is now 'M3' in SVN, not SVN r2483+.
* Added popup-hide handler (isn't hooked up yet).
* Removed FakeFriendPopup - wasn't used.
* Removed 'This is Me'.
* We now have a user profile in preferences.
* Cleaned up a bit of the Prefs builder, including translated and clickable labels.
2007-07-21 06:02:55 +00:00
dostrow 168af364e8 * Add support for importing maildir format mailboxes in bongo-storetool with the new -t flag
* Add support for importing to collections other then /mail/INBOX with the new -f flag
* Add support for exporting to both maildir and mbox format
* Split the old mail-store subcommand into mail-import (mi) and mail-export (me)
2007-07-20 17:31:21 +00:00
halex bbdfc1d6e3 Fixes the Big Cheese (aka bug #9541). 2007-07-19 11:51:30 +00:00
alexhudson b901178411 Disable outgoing TLS in SMTP, causes bug #9536. 2007-07-18 19:32:48 +00:00
alexhudson cc2146f14b Two fixes to python errors preventing logins 2007-07-18 11:31:11 +00:00
jonnylamb d81014a674 * Added support to Dragonfly preferences to determine how many items to be shown on a mail list view. This first tries to use the DF pref from the store, but if that cannot be used/is invalid then it falls back on ConversationsHandler.defaultPageSize, which is set to 30.
* Started documenting variables and methods in ConversationsHandler using Doxygen syntax.
2007-07-16 23:05:45 +00:00
halex 38b5be0c8d * More colors! :)
* Don't hide the logged out message after loading language.
* Colorise quotes in emails.
2007-07-16 06:50:16 +00:00
halex b186eca218 No more crazy composer POST loops! \o/ 2007-07-16 04:59:25 +00:00
halex 9010d916ab * More noop translations for set names in Mail view.
* It helps to store the pageSize value, you know!
* Update Dragonfly.go so that we check both the handler AND the tab for a getData(loc) function.
* Fixed up MailListView and co. so that we do what pageSize says, not anything else.
  |- Server side still has troubles with values besides 30. No touchy.
2007-07-16 02:40:01 +00:00
alexhudson 79673b9d1b Slightly naughty config fix to make dist work again, and update a python rule 2007-07-15 22:31:31 +00:00