$(SNAP)/bin/chandler.exe.manifest
clean:
rm -rf $(SRC)/wxPython/$(BUILD)
___
Commits mailing list
[EMAIL PROTECTED]
http://lists.osafoundation.org/mailman/listinfo/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.
will have an attribute 'detailView' of type
+Block. We could also make this attribute a bidiref.
+
+
+
+
+
+
+
+
_______
Commits mailing list
[EMAIL PROTECTED]
http://lists.osafoundatio
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
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
d: expand apply
cd $(SRC); \
___
Commits mailing list
[EMAIL PROTECTED]
http://lists.osafoundation.org/mailman/listinfo/commits
tent)
+
+except:
+result += "(Couldn't read Lob content)"
+
+result += "\n"
+count += 1
+
elif isinstance(value, SingleRef):
result += oddEvenRow(count)
result += ""
:\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
result += "(%s) " % typeName
try:
result += "%s" % (toLink(value.itsPath),
value.getItemDisplayName())
except:
-result += "%s (%s)" % (clean(value), clean(type(value)))
+ result +=
typeName
try:
result += "%s" % (toLink(value.itsPath),
___
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/commits
item.findPath("//parcels/osaf/contentmodel/mail/EmailAddress")
+if type is emailAddressKind:
+item.whoFrom = item.getCurrentMeEmailAddress()
except AttributeError:
pass
/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
+__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
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -383,7 +357,10 @@
-
+
___
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/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 =
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():
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
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
)
+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
@@
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
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 @@
+
+
+
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
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
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
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
)-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
srcdir=$(SRC) \
--with-python=$(WP) \
--with-pic \
- --without-pattern \
$(CONF_DBG)
compile: $(SRC)/$(BUILD)/Makefile
___
Commits mailing list
Commits@osafoundat
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
e gcj 3.4.x runtime libs
src=chandler/debug/lib
___________
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/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
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 mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/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):
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
rkup
___
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/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
text&tr2=None
___
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/commits
amp;tr2=None
___
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/commits
text/vnd.viewcvs-markup
___
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/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
amp;tr2=None
___
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/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
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
ayName, "simple calendar")
@@ -69,7 +69,7 @@
# CalendarEvent properties
calendarEventItem.displayName = "simple headline"
calendarEventItem.importance = "fyi"
-calendarEventItem.transparency = "busy"
+ c
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
tent-type=text/vnd.viewcvs-markup
___
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/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 mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/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
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
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
rkup
___
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/commits
?
___
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/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
=1.1&content-type=text/vnd.viewcvs-markup
___
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/commits
Globals.wxApplication.CallItemMethodAsync(Globals.views[0], callable,
message, **keys)
___
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/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
e
Sidebar
-True
_______
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/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
def UnRenderMainView (self):
mainViewRoot = Globals.mainViewRoot.unRender()
___
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/commits
rItem',
{'item':collection})
+mainView.postEventByName ('SelectItemBroadcastInsideActiveView',
{'item':collection})
"""
self._populateSharesList()
_______
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/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
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
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
elf.setStatusMessage("Import failed")
+conduit = rep.findPath("//userdata/fsconduit")
+if conduit is None:
+conduit = Sharing.FileSystemConduit(name="fsconduit",
+ parent=parent, sharePath=".", shareName="import.ics")
+
/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
)
+
+self.assertEqual(event.allDay, False)
+self.assertEqual(event.getAttributeValue('allDay'), False)
+
+self.assertEqual(event.anyTime, False)
+self.assertEqual(event.getAttributeValue('anyTim
/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
'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
l
0.2
+False
@@ -1652,6 +1653,7 @@
Vertical
0.2
+False
http://lists.osafoundation.org/mailman/listinfo/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
TYLE_DIRECTORY
+
+handlers = (
+('CalendarEvent', 'ics', iCalendarHandler),
+('Contact', 'vcd', vCardHandler),
+)
+
+def extension(self, item):
+# search the handlers for appropriate extension
+
+def importProcess(self, text, extension=
,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
@@ -1,2 +1,3 @@
api
-*.pyc *.pyo
+*.pyc
+*.pyo
___________
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/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
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
$(PYTHON) setup.py \
build --build-base=$(BUILD) $(DIST_OPT) \
___________
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/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
# 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
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
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
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
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
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
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
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
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
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
= self.GetSize().width - widthMinusLastColumn
+if remaining > 0:
+self.SetColSize(newColumns - 1, remaining)
+
self.ClearSelection()
for range in self.blockItem.selection:
if range [2]:
___
Co
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/
/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
@Temporary testing tool
written by Morgen -- DJA
wx.InitAllImageHandlers()
"""
___
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/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
.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
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
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
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
ME
src=chandler/distrib
_______
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/commits
def OnWXSelectItem(self, event):
self.blockItem.postEventByName ('SelectedDateChanged',
_______
Commits mailing list
Commits@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/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 - 100 of 2108 matches
Mail list logo