[Commits] (davids) added WinXP maifest file installation

2005-01-13 Thread commits
$(SNAP)/bin/chandler.exe.manifest clean: rm -rf $(SRC)/wxPython/$(BUILD) ___ Commits mailing list [EMAIL PROTECTED] http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (stearns) - Don't commit when stamping (for performance)

2005-01-13 Thread commits
Thu Jan 13 15:24:26 2005 @@ -1,7 +1,7 @@ - - + + @@ -40,6 +40,11 @@ + +AnyTime + + + We might want to think about having Location be just a 'String', rather than a reference to a 'Location' item.

[Commits] (morgen) Added a metakind for defining new kinds that have custom attributes.

2005-01-13 Thread commits
will have an attribute 'detailView' of type +Block. We could also make this attribute a bidiref. + + + + + + + + _______ Commits mailing list [EMAIL PROTECTED] http://lists.osafoundatio

[Commits] (heikki) Workaround for bug 2297, clean as last step will remove build_debug which prevents cvs up -D now working on the Mac.

2005-01-13 Thread commits
ild_debug +# directory exists and there is a sticky tag (like date). +# This is bug 2297. +outputList = hardhatutil.executeCommandReturnOutput( [buildenv['make'], dbgStr, 'clean' ]) + hardhatutil.dumpOutputList

[Commits] (bkirsch) Fix for a rare timeout condition

2005-01-13 Thread commits
tView("__disconnect") self.factory.sendFinished = 1 -self.proto.transport.loseConnection() + +if self.proto is not None: +self.proto.transport.loseConnection() def __fetchMessages(self, msgs): _______ Commits mailing list [EMAIL PROTECTED] http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (jeffrey) - Fixed bug in vobject that prevented parsing EXDATE. Created a new patch

2005-01-13 Thread commits
d: expand apply cd $(SRC); \ ___ Commits mailing list [EMAIL PROTECTED] http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (morgen) Now Lob values are displayed in the repo servlet

2005-01-14 Thread commits
tent) + +except: +result += "(Couldn't read Lob content)" + +result += "\n" +count += 1 + elif isinstance(value, SingleRef): result += oddEvenRow(count) result += ""

[Commits] (morgen) Added PyLucene search form to repo viewer

2005-01-14 Thread commits
:\n" % text +result += "\n" +count = 0 +for (item, attribute) in Globals.repository.searchItems(text): +result += oddEvenRow(count) +result += "%s" % (toLink(item.itsPath), item.getItemDisplayName()) +result += "" + count += 1 +result += "\n" +return result + def RenderRoots(): result = "" result += "\n" ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (morgen) Better display of attribute value types within repo servlet

2005-01-14 Thread commits
result += "(%s) " % typeName try: result += "%s" % (toLink(value.itsPath), value.getItemDisplayName()) except: -result += "%s (%s)" % (clean(value), clean(type(value))) + result +=

[Commits] (morgen) Using a safer way to determine type names

2005-01-14 Thread commits
typeName try: result += "%s" % (toLink(value.itsPath), ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (morgen) Fix for bug 2332 -- now the detail view determines the right kind of item

2005-01-14 Thread commits
item.findPath("//parcels/osaf/contentmodel/mail/EmailAddress") +if type is emailAddressKind: +item.whoFrom = item.getCurrentMeEmailAddress() except AttributeError: pass

[Commits] (bkirsch) changed path and disabled file save

2005-01-14 Thread commits
/mail/tests/test_servers/smtpTestServer.py Fri Jan 14 13:03:54 2005 @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/local/bin/python from twisted.internet.protocol import Factory from twisted.protocols import basic from twisted.internet import reactor _______ Comm

[Commits] (bkirsch) first round of attachment logic

2005-01-14 Thread commits
+__trace("text/%s" % subtype, buf, level) + +"""Get the attachment data""" +body = mimePart.get_payload(decode=1) +assert body is not None, "__handleText body is None" + +size = len(body) + + +#XXX: If there is an encoding then decode first then store +#encoding = mimePart.get +charset = mimePart.get_charset() +content_charset = mimePart.get_content_charset() + +if subtype == "plain" or subtype == "rfc822-headers": +#XXX: this requires i18n decoding +size > 0 and bodyBuffer.append(body) + +else: +mimeText = Mail.MIMEText() + +mimeText.mimeType = mimePart.get_content_type() +mimeText.filesize = len(body) +mimeText.filename = __getFileName(mimePart, counter) +mimeText.body = utils.strToText(mimeText, "body", body) + +parentMIMEContainer.mimeParts.append(mimeText) +parentMIMEContainer.hasMimeParts = True + +def __getFileName(mimePart, counter): +#XXX: This should handle all Unicode decoding of filename as well filename = mimePart.get_filename() if filename: return filename """No Filename need to create an arbitrary name""" -ext = mimetypes.guess_extension(mimePart.get_type()) +ext = mimetypes.guess_extension(mimePart.get_content_type()) if not ext: ext = '.bin' -return 'MIMEBinary-%s%s' % (num, ext) +return 'Attachment-%s%s' % (counter.nextValue(), ext) + +def __checkForDefects(mimePart): +if len(mimePart.defects) > 0: +strBuffer = [] + +for defect in mimePart.defects: +strBuffer.append(str(defect.__class__).split(".").pop()) + +logging.warn("*WARNING the following Mail Parsing defects \ + found: %s" % ", ".join(strBuffer)) + +def __appendHeader(mimePart, buffer, header): +if mimePart.has_key(header): +buffer.append("%s: %s\n" % (header, decodeHeader(mimePart[header]))) + +def __verbose(): +return __debug__ and constants.VERBOSE + +def __trace(contype, buf, level): +buf.append("%s %s" % (level * " ", contype)) ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (bkirsch) first round of attachment logic

2005-01-14 Thread commits
- - - - - - - - - - - - - - - - @@ -383,7 +357,10 @@ - + ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (vajda) - fixed bug in URL value load

2005-01-14 Thread commits
yright__ = "Copyright (c) 2003-2004 Open Source Applications Foundation" __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"; @@ -548,7 +548,7 @@ if data[offset] == '\0': return offset+1, None -offset, string =

[Commits] (jeffrey) - Tweaked vobject to make export to iCalendar easier

2005-01-14 Thread commits
y) +@@ -316,6 +316,7 @@ + except (KeyError, AttributeError): + obj = ContentLine(objOrName, [], '') + self.contents.setdefault(obj.name.lower(), []).append(obj) ++return obj + + def getChildren(self): + for objList in self.contents.values():

[Commits] (jeffrey) - Added a menu item for rudimentary export to iCalendar

2005-01-14 Thread commits
ef exportICalendar(events, out): -"""Export the list of Chandler CalendarEvents to one VCALENDAR in out.""" -pass +return success +def exportFile(filename, rep): +f = file(filename, 'w') +eventkind = rep.findPath('//parcels/osaf/contentmodel/calendar/CalendarEvent') +cal = eventsToVObject(KindQuery().run([eventkind])) +cal.serialize(f) +return True #--- Testing and running functions - ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (jeffrey) - Wrong path for Lob fixed

2005-01-14 Thread commits
ma/Core/Lob") for event in cal.vevent: #vevent's should really have a calculated duration in vobject #Note that the only functional difference between dtend and duration ___________ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (morgen) Text entered into the body of an item in the detail view is now indexed by pylucene.

2005-01-15 Thread commits
) +item.body = textType.makeValue(widgetText, encoding='ascii', + indexed=True) def loadAttributeIntoWidget (self, item, widget): if item.hasAttributeValue("body"): _______ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (bear) Added tools.timing call to TestDelete and enabled the tools.timing.resut()

2005-01-15 Thread commits
@@ tools.timing.begin("Commit Calendar Events") self.rep.commit() tools.timing.end("Commit Calendar Events") -#tools.timing.results() +tools.timing.results() results = self._compileQuery(u"for i in '//parcels/osaf/contentmode

[Commits] (morgen) Fixes bug 2333: 'body' attribute is now shared.

2005-01-15 Thread commits
1.85 --- chandler/parcels/osaf/contentmodel/parcel.xml:1.84 Thu Jan 13 17:13:34 2005 +++ chandler/parcels/osaf/contentmodel/parcel.xml Sat Jan 15 23:11:59 2005 @@ -1,8 +1,8 @@ - - + + @@ -86,6 +86,10 @@ + + +

[Commits] (jeffrey) - Updated vobject version for make install

2005-01-16 Thread commits
0.5-1.tar.gz \ - ../vobject-$(SNAP)-0.1-1.tar.gz + ../vobject-$(SNAP)-0.1-4.tar.gz # OpenSSL gets bundled into M2Crypto on Windows ifneq ($(OS),Cygwin) ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation

[Commits] (bear) Added items that I had removed when I was trying to get the ./configure

2005-01-16 Thread commits
riter = true; + var withWalker = true; +-var withPattern = true; ++var withPattern = false; + var withPush = true; + var withValid = true; + var withSax1 = true; @@ -162,7 +162,7 @@ function usage() /* Discovers the version we are working with by reading the apropriate configuration file. Despite its name, this also writes the configuration ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (bear) Enabling new version of libxml2

2005-01-17 Thread commits
ER=$(VERSION)-2 +VERSION=2.6.16 +RELVER=$(VERSION)-3 LIBXML2=$(BUILD_ROOT)/persistence/libxml2 SRC=$(LIBXML2)/libxml2-$(VERSION) ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (bear) reverting

2005-01-17 Thread commits
RSION=2.6.10 +RELVER=$(VERSION)-2 LIBXML2=$(BUILD_ROOT)/persistence/libxml2 SRC=$(LIBXML2)/libxml2-$(VERSION) ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (bear) new libxml2 (take 2)

2005-01-17 Thread commits
)-2 +VERSION=2.6.16 +RELVER=$(VERSION)-3 LIBXML2=$(BUILD_ROOT)/persistence/libxml2 SRC=$(LIBXML2)/libxml2-$(VERSION) ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (bear) libxml2 (take 3)

2005-01-17 Thread commits
srcdir=$(SRC) \ --with-python=$(WP) \ --with-pic \ - --without-pattern \ $(CONF_DBG) compile: $(SRC)/$(BUILD)/Makefile ___ Commits mailing list Commits@osafoundat

[Commits] (bear) preparing for distrib testing of new libxml2

2005-01-17 Thread commits
Mon Jan 17 22:19:52 2005 @@ -62,6 +62,7 @@ dest=release/lib libxml2.so.2 libxml2.so.2.6.10 +libxml2.so.2.6.16 # Grab the gcj 3.4.x runtime libs src=chandler/release/lib _______ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (bear) better way to handle the upgrade - this won't break the make install builds

2005-01-17 Thread commits
e gcj 3.4.x runtime libs src=chandler/debug/lib ___________ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (bear) libxml2 version is now 2.6.16

2005-01-17 Thread commits
Mon Jan 17 23:09:42 2005 @@ -61,7 +61,7 @@ src=chandler/release/lib dest=release/lib libxml2.so.2 -libxml2.so.2.6.1* +libxml2.so.2.6.16 # Grab the gcj 3.4.x runtime libs src=chandler/release/lib _______ Commits mailing list Commit

[Commits] (bear) libxml2 version is now 2.6.16

2005-01-17 Thread commits
4-0-2.tar.gz \ - ../libxml2-$(SNAP)-2.6.10-2.tar.gz \ + ../libxml2-$(SNAP)-2.6.16-3.tar.gz \ ../m2crypto-$(SNAP)-0.12-7.tar.gz \ ../pychecker-$(SNAP)-0.8.13-2.tar.gz \ ../pylucene-$(SNAP)-0.9.6-1.tar.gz \ ___ Com

[Commits] (bkirsch) Directory /usr/local/cvsrep/chandler/parcels/osaf/mail/tests/mime_tests added to the repository

2005-01-18 Thread commits
? ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (vajda) - use 'utf-8' when encoding unspecified on Input|OutputStreamReader|Writer

2005-01-18 Thread commits
ng or 'utf-8' def write(self, text): @@ -569,7 +569,7 @@ super(InputStreamReader, self).__init__() self.inputStream = inputStream -self.encoding = encoding +self.encoding = encoding or 'utf-8' def _read(self, length):

[Commits] (bkirsch) adding Anthony Baxter's mime-torture tests for Chandler unit testing

2005-01-18 Thread commits
ewcvs-markup http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/mail/tests/mime_tests/test_webtv?rev=1.1&content-type=text/vnd.viewcvs-markup http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/mail/tests/mime_tests/test_zero-length-boundary?rev=1.1&content-type=text/vnd.viewcvs-markup ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (bkirsch) Anthony Baxter mime torture test loading

2005-01-18 Thread commits
rkup ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (vajda) - added Item.getItemDisplayString()

2005-01-18 Thread commits
-all = True - for name, value in self.iteritems(): flags = self._getFlags(name) - if not (all or flags & Values.DIRTY != 0): +if flags & Values.TRANSIENT != 0: continue if kind is not None: @@ -641,7 +641,11 @@ attribute = None persist = True -if not (persist and flags & Values.TRANSIENT == 0): +if not persist: +continue + +if not (all or flags & Values.DIRTY != 0): +itemWriter._unchangedValue(item, name) continue if value is item.Nil: ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (bkirsch) not needed

2005-01-18 Thread commits
text&tr2=None ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (bkirsch) Moved logic in to a Test Menu item

2005-01-18 Thread commits
amp;tr2=None ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (bkirsch) added a alternative multipart example

2005-01-18 Thread commits
text/vnd.viewcvs-markup ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (bkirsch) Added ';' parsing

2005-01-18 Thread commits
n email address +#divider +if val.find(';') != -1: +addresses.extend(val.split(';')) +else: +addresses.append(val) + # build a list of all processed addresses, and all valid addresses validAddresses = [] ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (heikki) DO NOT CHECK IN VIRUSES.

2005-01-18 Thread commits
amp;tr2=None ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (stearns) - Fix typo (anyTime -> allDay), sorry Katie!

2005-01-19 Thread commits
y from the enum values -busy -free -tentative -cancelled - - + + Time Transparency + The iCalendar values for Time Transparency are slightly different. We should consider making our values match the iCalendar one

[Commits] (vajda) - fixed another copy bug related to copying None single-refs

2005-01-19 Thread commits
other = item.find(value.itsUUID) copyOther = copyFn(item, other, policy) -if copyOther is not None: +if copyOther is not item.Nil: self[name] = SingleRef(copyOther.itsUUID) else: self[name] = value ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (stearns) Tweak unit test to match previous content-model change

2005-01-19 Thread commits
ayName, "simple calendar") @@ -69,7 +69,7 @@ # CalendarEvent properties calendarEventItem.displayName = "simple headline" calendarEventItem.importance = "fyi" -calendarEventItem.transparency = "busy" + c

[Commits] (morgen) Fixes bugs 2337 (share allDay and transparency attrs) and 2338 (A stamped item shows up as a duplicate item in chandler after sharing).

2005-01-19 Thread commits
as ItemCollection import osaf.contentmodel.ContentModel as ContentModel import osaf.contentmodel.calendar.Calendar as Calendar @@ -71,7 +72,7 @@ conduit = Sharing.FileSystemConduit(name="conduit", parent=sandbox, sharePath=".", shareName="Chandler.ics") -format = Sharing.ICalendarFormat(name="format", parent=sandbox) +format = ICalendar.ICalendarFormat(name="format", parent=sandbox) self.share = Sharing.Share(name="share", parent=sandbox, conduit=conduit, format=format) self.share.get() ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (heikki) First cut of low level WebDAV ACL. Works against Sharemation server at least.

2005-01-19 Thread commits
tent-type=text/vnd.viewcvs-markup ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (morgen) Removing externalUUID

2005-01-20 Thread commits
plication.Parcel.NewItem(self.itsView, None, + self.itsView.findPath("//userdata"), kind, uuid) + else: +item = kind.newItem(None, None) # print "created item", item.itsPath, item.itsKind else: # there is a chance that the incoming kind is different than the @@ -1294,6 +1277,7 @@ item.setAttributeValue(attrName, value) elif cardinality == 'list': +attrItem = item.itsKind.getAttribute(attrName) values = [] valueNode = attrNode.children while valueNode: ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (bkirsch) Directory /usr/local/cvsrep/chandler/parcels/osaf/mail/tests/i18n_tests added to the repository

2005-01-20 Thread commits
? ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (bkirsch) Added i18n torture messages and an additional spam message

2005-01-20 Thread commits
ls/osaf/mail/tests/mime_tests/test_spamLong?rev=1.1&content-type=text/vnd.viewcvs-markup ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (donn) Minor simplification to Stamping logic

2005-01-20 Thread commits
ldSignature -shortList = newSignature - kinds = removedKinds -for aKind in longList: -if not aKind in shortList: -kinds.append (aKind) -return (addedKinds, removedKinds) +for aKind in newSignature: +if not aKind in oldSignature: +addedKinds.append (aKind) +return addedKinds """ ACCESSORS ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (bear) Directory /usr/local/cvsrep/hardhat/qa added to the repository

2005-01-20 Thread commits
Commit by: bear Modified files: hardhat/qa Log message: Directory /usr/local/cvsrep/hardhat/qa added to the repository ViewCVS links: http://cvs.osafoundation.org/index.cgi/hardhat/qa? ___ Commits mailing list Commits@osafoundation.org http

[Commits] (bear) Script to scan, manipulate and generate the performance variation data

2005-01-20 Thread commits
rkup ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (bkirsch) Directory /usr/local/cvsrep/chandler/parcels/osaf/mail/tests/test_clients added to the repository

2005-01-21 Thread commits
? ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (vajda) fixed bi-ref bug (t62)

2005-01-21 Thread commits
s not None and previousKey != key: self._get(previousKey)._setNext(key, previousKey, self) +super(LinkedMap, self).__setitem__(key, link) + if previousKey is None or previousKey != key: link._setPrevious(previousKey, key, self) if nextKey is None or nextKey != key: link._setNext(nextKey, key, self) -super(LinkedMap, self).__setitem__(key, link) - if alias: link._alias = alias if self._aliases is None: ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (bkirsch) Basic SMTP and IMAP Clients written using the Twisted Framework. The clients are used for debugging purposes

2005-01-21 Thread commits
=1.1&content-type=text/vnd.viewcvs-markup ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (john) a occurrence of mainView was introduced since I grep for all them and replaced them

2005-01-21 Thread commits
Globals.wxApplication.CallItemMethodAsync(Globals.views[0], callable, message, **keys) ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (heikki) Better API for WebDAV ACL (still low level). Moving to sharing directory, and adding the getacl/setacl methods into WebDAV.Client so they can be used.

2005-01-21 Thread commits
ACL +body = XML_DOC_HEADER + str(acl) +headers = extraHeaders.copy() +headers['Content-Type'] = XML_CONTENT_TYPE +return self._request('ACL', url, body, headers) + def _request(self, method, url, body=None, extraHeaders={ }): if self.conn is None: self.connect() ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (john) yet another cloud bug causes new item collections to not get added to the sidebar

2005-01-21 Thread commits
e Sidebar -True _______ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (john) String AttributeEditors don't allow editing of string attribute. This causes the sidebar names not to be editable. I now allow direct editing of string when cardinality is single.

2005-01-21 Thread commits
buteName, valueString) + class DateTimeAttributeEditor (StringAttributeEditor): def GetAttributeValue (self, item, attributeName): try: ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (john) An annoying bug cropped up on Mac and Windows that I haven't seen since I've been mainly running on Linux these days: The layout of the window is out of wack until you resize the window. I fixed it by calling layout on the top-most sizer when it's added tot he mainframe.

2005-01-22 Thread commits
def UnRenderMainView (self): mainViewRoot = Globals.mainViewRoot.unRender() ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (john) Added a possible fix for Morgen's share tool which adds an item collection to the sidebar -- but couldn't figure out how to use the share tool and test the code.

2005-01-22 Thread commits
rItem', {'item':collection}) +mainView.postEventByName ('SelectItemBroadcastInsideActiveView', {'item':collection}) """ self._populateSharesList() _______ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (donn) Updated a couple of comments in the code

2005-01-23 Thread commits
date, but they could probably -use some help from the AE framework. - - -Investigations --- -* Can we use AE's in an arbitrary canvas, like in the calendar? Probably will need -to update the API for this, so the rect of the AE gets passed in to Create(), -etc. - """ class wxAEBlock(wxRectangularChild): ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (donn) Fixed a minor bug when you edit an attribute in a grid

2005-01-23 Thread commits
ow, column) attributeSetter (item, attributeName, value) self.delegate.EndControlEdit (item, attributeName, self.control) return changed ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (john) * Forgot to add event to list of those that get lookedup by name

2005-01-23 Thread commits
n/parcel.xml Sun Jan 23 17:29:16 2005 @@ -1,7 +1,7 @@ - - + + @@ -1627,6 +1627,7 @@ + Vertical 1024,720 ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (jeffrey) - Improved ICalendarFormat's import code to use timezones and recurrence

2005-01-23 Thread commits
elf.setStatusMessage("Import failed") +conduit = rep.findPath("//userdata/fsconduit") +if conduit is None: +conduit = Sharing.FileSystemConduit(name="fsconduit", + parent=parent, sharePath=".", shareName="import.ics") +

[Commits] (bkirsch) Utility program for sending the contents message stored in a file on the filesystem over smtp

2005-01-24 Thread commits
/tests/test_clients/smtpFileSender.py?rev=1.1&content-type=text/vnd.viewcvs-markup ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (stearns) Support allDay, anyTime; fix a few minor DV bugs.

2005-01-24 Thread commits
) + +self.assertEqual(event.allDay, False) +self.assertEqual(event.getAttributeValue('allDay'), False) + +self.assertEqual(event.anyTime, False) +self.assertEqual(event.getAttributeValue('anyTim

[Commits] (bkirsch) common.py is deprecated and was removed from the repository. I will check with John on why it was recheckin

2005-01-24 Thread commits
/common.py.diff?r1=text&tr1=1.11&r2=text&tr2=None ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (bkirsch) adds additional attachment functionality and fixes bug #2345

2005-01-24 Thread commits
'tests', 'mime_tests') + +files = os.listdir(mimeDir) + +for file in files: +if not file.startswith('test_'): +continue + +filename = os.path.join(mimeDir, file) +messageObject = email.message_from_file(open(filename)) +mailMessage = message.messageObjectToKind(messageObject) +#mailMessage.incomingMessage() + +Globals.repository.view.commit() + + def getChandlerTransportMessage(): """Returns the skeleton of a mail message populated with the subject and body verbage Chandler uses when the message in not intended to @@ -80,8 +109,7 @@ if Globals.wxApplication is not None: # test framework has no wxApplication Globals.wxApplication.CallItemMethodAsync(Globals.views[0], callable, - message, **keys) - + message, **keys) def dateTimeToRFC2882Date(dateTime): """Converts a C{mx.DateTime} object to a @@ -122,9 +150,10 @@ return False -def strToText(contentItem, attribute, string, indexText=False, encoding='utf-8'): +def strToText(contentItem, attribute, string, indexText=False, encoding=constants.DEFAULT_CHARSET): """Converts a C{str} or C{unicode} to C{Lob}. """ +#XXX: Only unicode should be passed to this method if not isString(string): return None ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (jed) Added ability to make splitters non-resizeable. Made sidebar fixed width.

2005-01-24 Thread commits
l 0.2 +False @@ -1652,6 +1653,7 @@ Vertical 0.2 +False http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (jed) Changed horizontal layout to use box container rather than splitter. Fixed toolbars to calculate their width rather than always being a fixed size.

2005-01-24 Thread commits
4,7 +1427,7 @@ - + Vertical @@ -1441,16 +1444,14 @@ - + -Vertical -0.2 -False - +Horizontal + ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (morgen) Added a _putItem call so that Jeffrey's ICalendarFormat exportProcess method will get called; net result: exporting of a .ics file works.

2005-01-24 Thread commits
TYLE_DIRECTORY + +handlers = ( +('CalendarEvent', 'ics', iCalendarHandler), +('Contact', 'vcd', vCardHandler), +) + +def extension(self, item): +# search the handlers for appropriate extension + +def importProcess(self, text, extension=

[Commits] (john) * ShareTool can now add item collections to the sidebar

2005-01-24 Thread commits
,11 +28,12 @@ Block Events --> - -AddToSidebar + +AddToSidebarWithoutCopying onModifyContentsEvent SendToBlockByName Sidebar +False @@ -1606,6 +1607,7 @@ + Vertical 1024,720 @@ -1629,7 +1631,7 @@ - + Vertical 1024,720 ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (alecf) fix multiline .cvsignore to support dumb CVS clients like eclipse

2005-01-24 Thread commits
@@ -1,2 +1,3 @@ api -*.pyc *.pyo +*.pyc +*.pyo ___________ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (morgen) Better http error handling and retry logic; also handles 30X redirects

2005-01-24 Thread commits
if response.status in (httplib.MOVED_PERMANENTLY, httplib.FOUND, + httplib.SEE_OTHER, httplib.TEMPORARY_REDIRECT): +response.read() # Always need to read each response +url = response.getheader('Location') + logger.debug("R

[Commits] (stearns) Fix bug 2360: initialize calendarevent attributes (allDay, anyTime, transparency) in parcel XML instead of _initMixin

2005-01-25 Thread commits
model/calendar/parcel.xml Tue Jan 25 10:08:03 2005 @@ -1,7 +1,7 @@ - - + + @@ -43,11 +43,13 @@ All-Day + Any-Time + @@ -96,6 +98,7 @@ + ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (jeffrey) - Updated to latest vobject to enable reminder import/export

2005-01-25 Thread commits
$(PYTHON) setup.py \ build --build-base=$(BUILD) $(DIST_OPT) \ ___________ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (capps) Initial round of .5 calendar changes. The days-of-week header is scaffolding, awaiting a header widget (looks bad on a mac at the moment).

2005-01-25 Thread commits
print box.bounds, box._resizeTopBounds, box._resizeLowBounds + if hitBox: self.OnSelectItem(hitBox.getItem()) self._dragBox = hitBox Index: chandler/parcels/osaf/framework/blocks/calendar/parcel.xml diff -u chandler/parcels/osaf/framework/blocks/calendar/parcel.xml:1.11 chandler/parcels/osaf/framework/blocks/calendar/parcel.xml:1.12 --- chandler/parcels/osaf/framework/blocks/calendar/parcel.xml:1.11 Wed Dec 15 13:16:40 2004 +++ chandler/parcels/osaf/framework/blocks/calendar/parcel.xml Tue Jan 25 11:58:16 2005 @@ -1,7 +1,7 @@ - - + + @@ -29,6 +29,9 @@ + + + @@ -44,6 +47,12 @@ + + + + + + ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (morgen) Web servlets now run using the main thread's repository view (since most of the time you are interested in peeking into the main thread's view).

2005-01-25 Thread commits
# The Server item will give us the repositoryView during + # startup. Set it to be the current view and restore the + # previous view when we're done. +repoView = self.repositoryView +prevView = repoView.setCurrentView() + +photoParcel = repoView.findPath("//parcels/osaf/framework/webserver/servlets/photos") + +if not request.postpath or request.postpath[0] == "": +result = "Photos" +result += "" +result += "Photos" +photos = photoParcel.findPath("data") +for photo in photos.iterChildren(): +result += "   %s" % (photo.itsName, photo.caption) +result += "" +return str(result) + +name = request.postpath[0] +photo = photoParcel.findPath("data/%s" % name) +if photo is None: +result += "Photo not found: %s" % name +return str(result) + +templates = os.path.join(os.path.dirname(photoParcel.file), + "templates") +header = file(os.path.join(templates, "head.html"), "r") +result = "\n".join(header.readlines()) +header.close() + +result += "%s" % photo.caption +result += "" % photo.file +footer = file(os.path.join(templates, "foot.html"), "r") +result += "\n".join(footer.readlines()) +footer.close() +finally: +prevView.setCurrentView() except Exception, e: result = "Caught an exception: %s %s" % (e, "".join(traceback.format_tb(sys.exc_traceback))) ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (vajda) added code to setup a 64 Mb cache on Linux as well

2005-01-25 Thread commits
status, name = getstatusoutput('uname') +if status == 0 and name == 'Linux': +env.set_cachesize(0, 0x400, 1) return env _______ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (jeffrey) - Updated vobject

2005-01-25 Thread commits
bject-$(SNAP)-0.1-4.tar.gz + ../vobject-$(SNAP)-0.1-1.1.tar.gz # OpenSSL gets bundled into M2Crypto on Windows ifneq ($(OS),Cygwin) ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (jeffrey) - enabled VALARM <-> reminderTime mapping

2005-01-25 Thread commits
try: -vevent.add('dtstamp').value = convertToUTC(event.createdOn) -except AttributeError: -pass -try: -vevent.add('description').value = event.body.getReader().read() -except AttributeError: - pass -return cal - def importFile(filename, rep): success = True f = file(filename) ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (heikki) Docstring needs to be first, otherwise doctest won't work - thanks Phillip! Minor improvements.

2005-01-25 Thread commits
s' %(_Privileges.__str__(self)) +return '%s' %(super(_Grant, self).__str__()) else: return '' @@ -179,11 +241,15 @@ """ def __str__(self): if self.privileges: -# Why doesn't this work?: super(_Privileges, self).__str__() -return '%s' %(_Privileges.__str__(self)) +return '%s' %(super(_Deny, self).__str__()) else: return '' if __name__ == '__main__': import doctest +libxml2.debugMemory(1) doctest.testmod() +libxml2.cleanupParser() +if libxml2.debugMemory(1) != 0: +print '***error***: libxml2 memory leak %d bytes' %(libxml2.debugMemory(1)) +libxml2.dumpMemory() ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (vajda) added some .cvsignore files

2005-01-25 Thread commits
http://cvs.osafoundation.org/index.cgi/external/vobject/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (jeffrey) - Fixed transposed - and . typo

2005-01-25 Thread commits
0.5-1.tar.gz \ - ../vobject-$(SNAP)-0.1-1.1.tar.gz + ../vobject-$(SNAP)-0.1.1-1.tar.gz # OpenSSL gets bundled into M2Crypto on Windows ifneq ($(OS),Cygwin) ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mail

[Commits] (alecf) check in a new version of feedparser (3.0.1) for bug 1421

2005-01-25 Thread commits
ta = entity_pattern.sub('', data) doctype_pattern = re.compile(r']*?)>', re.MULTILINE) doctype_results = doctype_pattern.findall(data) doctype = doctype_results and doctype_results[0] or '' @@ -1749,47 +1839,40 @@ data = doctype_pattern.sub('', data) return version, data -def parse(url_file_stream_or_string, etag=None, modified=None, agent=None, referrer=None): -"""Parse a feed from a URL, file, stream, or string""" -result = FeedParserDict() -f = _open_resource(url_file_stream_or_string, etag=etag, modified=modified, agent=agent, referrer=referrer) -data = f.read() -if hasattr(f, "headers"): -if gzip and f.headers.get('content-encoding', '') == 'gzip': -try: -data = gzip.GzipFile(fileobj=_StringIO(data)).read() -except: -# some feeds claim to be gzipped but they're not, so we get garbage -data = '' -if hasattr(f, "info"): -info = f.info() -result["etag"] = info.getheader("ETag") -last_modified = info.getheader("Last-Modified") -if last_modified: -result["modified"] = _parse_date(last_modified) -if hasattr(f, "url"): -result["url"] = f.url -result["status"] = 200 # default, may be overridden later -if hasattr(f, "status"): -result["status"] = f.status -if hasattr(f, "headers"): -result["headers"] = f.headers.dict -f.close() -if result.get("status", 0) == 304: -result['feed'] = FeedParserDict() -result['entries'] = [] -result['debug_message'] = "The feed has not changed since you last checked, so the server sent no data. This is a feature, not a bug!" -return result -result['encoding'], http_encoding, xml_encoding = _getCharacterEncoding(result.get("headers", {}), data) -result['version'], data = _stripDoctype(data) -baseuri = result.get('headers', {}).get('content-location', result.get('url')) -# try true XML parser first -if not _XML_AVAILABLE: -if _debug: sys.stderr.write('no xml libraries available\n') -use_strict_parser = _XML_AVAILABLE +def _attempt_parse(data, result, baseuri, use_strict_parser, declared_encoding, proposed_encoding): if use_strict_parser: +# use real XML parser if _debug: sys.stderr.write('using xml library\n') result['bozo'] = 0 + +# If encoding specified in http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (alecf) temporary fix for bug 2309 - disable New Contact for .5 release

2005-01-25 Thread commits
n/parcel.xml Tue Jan 25 15:23:28 2005 @@ -1,7 +1,7 @@ - - + + @@ -532,7 +532,8 @@ NewContactItem Contact Create a new Contact - + ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation

[Commits] (alecf) make About window modal so we can't create a whole bunch of them

2005-01-25 Thread commits
SplashScreen(None, _("About Chandler"), - None, html, False, False) + None, html, True, False) splash.Show(True) def onCopyEventUpdateUI (self, event): ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (alecf) Simple fix for bug 2090 - mimic the OnSize() behavior in wxSynchronizeWidget which sets the last column to fill out the rest of the widget r=john

2005-01-25 Thread commits
= self.GetSize().width - widthMinusLastColumn +if remaining > 0: +self.SetColSize(newColumns - 1, remaining) + self.ClearSelection() for range in self.blockItem.selection: if range [2]: ___ Co

[Commits] (davids) added minical wx class files; fixed XP them manifest file copy commands

2005-01-25 Thread commits
Commit by: davids Modified files: internal/wxPython-2.5/Makefile 1.26 1.27 internal/wxPython-2.5/Makefile.in 2.3 2.4 internal/wxPython-2.5/build/bakefiles/files.bkl 2.3 2.4 internal/wxPython-2.5/build/msw/makefile.vc 2.4 2.5 internal/wxPython-2.5/include/wx/minical.h None 1.1 internal/wxPython-2.5/

[Commits] (bkirsch) utility for examining the structure of a message. Still needs some refinement

2005-01-25 Thread commits
/test_clients/printMessageStructure.py?rev=1.1&content-type=text/vnd.viewcvs-markup ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (john) Removed an extra call to timing.py that crept into my last checkin

2005-01-25 Thread commits
@Temporary testing tool written by Morgen -- DJA wx.InitAllImageHandlers() """ ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (john) Attribute no longer required

2005-01-25 Thread commits
ework/blocks/parcel.xml Tue Jan 25 16:50:49 2005 @@ -1,7 +1,7 @@ - - + + @@ -1281,7 +1281,6 @@ - True ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (alecf) argh, back out feedparser. will this thing ever work on mac?

2005-01-25 Thread commits
.compile(r']*?)>', re.MULTILINE) -data = entity_pattern.sub('', data) doctype_pattern = re.compile(r']*?)>', re.MULTILINE) doctype_results = doctype_pattern.findall(data) doctype = doctype_results and doctype_results[0] or '' @@ -1839,40 +1749,47 @@ data = doctype_pattern.sub('', data) return version, data -def _attempt_parse(data, result, baseuri, use_strict_parser, declared_encoding, proposed_encoding): +def parse(url_file_stream_or_string, etag=None, modified=None, agent=None, referrer=None): +"""Parse a feed from a URL, file, stream, or string""" +result = FeedParserDict() +f = _open_resource(url_file_stream_or_string, etag=etag, modified=modified, agent=agent, referrer=referrer) +data = f.read() +if hasattr(f, "headers"): +if gzip and f.headers.get('content-encoding', '') == 'gzip': +try: +data = gzip.GzipFile(fileobj=_StringIO(data)).read() +except: +# some feeds claim to be gzipped but they're not, so we get garbage +data = '' +if hasattr(f, "info"): +info = f.info() +result["etag"] = info.getheader("ETag") +last_modified = info.getheader("Last-Modified") +if last_modified: +result["modified"] = _parse_date(last_modified) +if hasattr(f, "url"): +result["url"] = f.url +result["status"] = 200 # default, may be overridden later +if hasattr(f, "status"): +result["status"] = f.status +if hasattr(f, "headers"): +result["headers"] = f.headers.dict +f.close() +if result.get("status", 0) == 304: +result['feed'] = FeedParserDict() +result['entries'] = [] +result['debug_message'] = "The feed has not changed since you last checked, so the server sent no data. This is a feature, not a bug!" +return result +result['encoding'], http_encoding, xml_encoding = _getCharacterEncoding(result.get("headers", {}), data) +result['version'], data = _stripDoctype(data) +baseuri = result.get('headers', {}).get('content-location', result.get('url')) +# try true XML parser first +if not _XML_AVAILABLE: +if _debug: sys.stderr.write('no xml libraries available\n') +use_strict_parser = _XML_AVAILABLE if use_strict_parser: -# use real XML parser if _debug: sys.stderr.write('using xml library\n') result['bozo'] = 0 - -# If encoding specified in http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (vajda) - added checking of 'required' aspect to Item.check()

2005-01-25 Thread commits
ss SchemaMonitor(Monitor): @@ -764,4 +862,4 @@ logger = kind.itsView.logger for cls in Kind._kinds.get(kind._uuid, []): logger.warning('Change in %s caused syncing of attribute descriptors on class %s.%s for Kind %s', attrName, cls.__module__, cls.__name__, kind.itsPath) -kind._setupDescriptors(cls, True) +kind._setupDescriptors(cls, attrName) Index: chandler/repository/tests/data/packs/cineguide/schema/attributes/FrenchTitle.attr diff -u chandler/repository/tests/data/packs/cineguide/schema/attributes/FrenchTitle.attr:1.8 chandler/repository/tests/data/packs/cineguide/schema/attributes/FrenchTitle.attr:1.9 --- chandler/repository/tests/data/packs/cineguide/schema/attributes/FrenchTitle.attr:1.8 Tue Oct 14 10:47:18 2003 +++ chandler/repository/tests/data/packs/cineguide/schema/attributes/FrenchTitle.attr Tue Jan 25 19:03:35 2005 @@ -6,6 +6,5 @@ //Schema/Core/String single -True title ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (heikki) Fix full build on Linux.

2005-01-25 Thread commits
text = "Today"; + wxString todaytext = wxT("Today"); dc.GetTextExtent(todaytext, &todayw, &todayh); m_todayRect = wxRect(0, 0, 0, 0); _______ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (heikki) wxPython with minical.

2005-01-26 Thread commits
ython-$(SNAP)-2.5.3.1-3.tar.gz \ + ../wxPython-$(SNAP)-2.5.3.1-5.tar.gz \ ../yapps-$(SNAP)-2.1.1-2.tar.gz \ ../zopeinterface-$(SNAP)-3.0.0b1-2.tar.gz \ ../dateutil-$(SNAP)-0.5-1.tar.gz \ ___ Commits

[Commits] (heikki) Package *.manifest files to see the native decorations.

2005-01-26 Thread commits
ME src=chandler/distrib _______ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (jed) Use the new minical class in chandler.

2005-01-26 Thread commits
def OnWXSelectItem(self, event): self.blockItem.postEventByName ('SelectedDateChanged', _______ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/commits

[Commits] (heikki) Milestone 0.4.06.

2005-01-26 Thread commits
-21,7 +21,7 @@ CFBundleSignature CHAN CFBundleVersion - 0.4.05 + 0.4.06 NSMainNibFile MainMenu NSPrincipalClass ___ Commits mailing list Commits@osafoundation.org http://lists.osafoundation.org/mail

  1   2   3   4   5   6   7   8   9   10   >