Mailing list archives: November 2004

Site index · List index
Message listThread · Author · Date
b...@code-bear.com dClass = PANELS[panelType]['fields'][field]['kind'] </span><span class="add">+ kindClass = self.panelsInfo[panelType]['fields'][field]['kind'] </span><span class="cx"> for item in kindClass.iterItems(self.rv): deleted = False for accountData in self.deletions: </span><span class="lines">@@ -1235,7 +1272,7 @@ </span><span class="cx"> for accountData in self.data: if item.itsUUID == accountData['item']: displayNameField = \ </span><span class="rem">- PANELS[item.accountType]['displayName'] </span><span class="add">+ self.panelsInfo[item.accountType]['displayName'] </span><span class="cx"> displayName = \ accountData['values'][displayNameField] break </span><span class="lines">@@ -1250,8 +1287,6 @@ </span><span class="cx"> elif valueType == "integer": control.SetValue(str(data[field])) </span><span class="rem">-# else: -# raise ValueError('Unhandled valueType ' + valueType) </span><span class="cx"> def OnOk(self, evt): </span><span class="lines">@@ -1296,7 +1331,8 @@ </span><span class="cx"> buf.append("host: %s" % item.host) buf.append("port: %s" % item.port) buf.append("username: %s" % item.username) </span><span class="rem">- buf.append("password: %s" % waitForDeferred(item.password.decryptPassword(window=self))) </span><span class="add">+ buf.append("password: %s" % waitForDeferred( + item.password.decryptPassword(window=self))) </span><span class="cx"> if item.accountType in ("SHARING_DAV", "SHARING_MORSECODE", "SHARING_HUB"): </span><span class="lines">@@ -1368,7 +1404,8 @@ </span><span class="cx"> self) if yes: </span><span class="rem">- RemoveChandlerIMAPFoldersDialog(self, account, self.OnFolderRemoval) </span><span class="add">+ RemoveChandlerIMAPFoldersDialog(self, account, + self.OnFolderRemoval) </span><span class="cx"> def OnFolderCreation(self, result): statusCode, folderNames = result </span><span class="lines">@@ -1423,7 +1460,8 @@ </span><span class="cx"> port = wx.xrc.XRCCTRL(self.currentPanel, "INCOMING_PORT") port.SetValue(str(account.port)) </span><span class="rem">- fieldInfo = PANELS[self.currentPanelType]['fields']['INCOMING_SECURE'] </span><span class="add">+ fields = self.panelsInfo[self.currentPanelType]['fields'] + fieldInfo = fields['INCOMING_SECURE'] </span><span class="cx"> for (button, value) in fieldInfo['buttons'].iteritems(): if account.connectionSecurity == value: </span><span class="lines">@@ -1437,7 +1475,8 @@ </span><span class="cx"> port = wx.xrc.XRCCTRL(self.currentPanel, "OUTGOING_PORT") port.SetValue(str(account.port)) </span><span class="rem">- fieldInfo = PANELS[self.currentPanelType]['fields']['OUTGOING_SECURE'] </span><span class="add">+ fields = self.panelsInfo[self.currentPanelType]['fields'] + fieldInfo = fields['OUTGOING_SECURE'] </span><span class="cx"> for (button, value) in fieldInfo['buttons'].iteritems(): if account.connectionSecurity == value: </span><span class="lines">@@ -1455,7 +1494,8 @@ </span><span class="cx"> IMAP = proto.GetSelection() == 0 </span><span class="rem">- fieldInfo = PANELS[self.currentPanelType]['fields']['INCOMING_SECURE'] </span><span class="add">+ fields = self.panelsInfo[self.currentPanelType]['fields'] + fieldInfo = fields['INCOMING_SECURE'] </span><span class="cx"> connectionSecurity = None </span><span class="lines">@@ -1527,34 +1567,19 @@ </span><span class="cx"> def CreateNewAccount(self, accountType): </span><span class="rem">- if accountType == "INCOMING": - item = Mail.IMAPAccount(itsView=self.rv) - a = _(u"New Incoming Mail Account") - p = "IMAP" - elif accountType == "OUTGOING": - item = Mail.SMTPAccount(itsView=self.rv) - a = _(u"New Outgoing Mail Account") - p = "SMTP" - elif accountType == "SHARING_DAV": - item = sharing.WebDAVAccount(itsView=self.rv) - a = _(u"New Sharing Account") - p = "WebDAV" - elif accountType == "SHARING_MORSECODE": - item = sharing.CosmoAccount(itsView=self.rv) - a = _(u"Chandler Server sharing") - p = "Morsecode" - elif accountType == "SHARING_HUB": - item = sharing.HubAccount(itsView=self.rv) - a = _(u"Chandler Hub sharing") - p = "Morsecode" </span><span class="add">+ panel = self.panelsInfo[accountType] </span><span class="cx"> </span><span class="rem">- item.displayName = a </span><span class="add">+ cls = panel['class'] + item = cls(itsView=self.rv) + newName = panel['fields'][panel['displayName']]['default'] + item.displayName = newName + protocol = panel['protocol'] </span><span class="cx"> self.creations.add(item) values = { } </span><span class="rem">- for (field, desc) in PANELS[accountType]['fields'].iteritems(): </span><span class="add">+ for (field, desc) in self.panelsInfo[accountType]['fields'].iteritems(): </span><span class="cx"> if desc['type'] == 'currentPointer': setting = False </span><span class="lines">@@ -1563,7 +1588,7 @@ </span><span class="cx"> setting = None elif desc['type'] == 'chandlerFolders': </span><span class="rem">- if p == "IMAP": </span><span class="add">+ if protocol == "IMAP": </span><span class="cx"> setting = {"hasFolders": self.hasChandlerFolders(item)} else: setting = {} </span><span class="lines">@@ -1580,7 +1605,7 @@ </span><span class="cx"> self.data.append( { "item" : item.itsUUID, "values" : values, "type" : accountType, </span><span class="rem">- "protocol" : p, </span><span class="add">+ "protocol" : protocol, </span><span class="cx"> "isNew" : True } ) index = self.accountsList.Append(item.displayName) </span><span class="lines">@@ -1601,8 +1626,13 @@ </span><span class="cx"> index = self.accountsList.GetSelection() item = self.rv.findUUID(self.data[index]['item']) </span><span class="rem">- deleteHandler = PANELS[item.accountType]['deleteHandler'] - canDelete = deleteHandler(item, self.data[index]['values'], self.data) </span><span class="add">+ deleteHandler = self.panelsInfo[item.accountType].get('deleteHandler', + None) + if deleteHandler is None: + canDelete = True + else: + canDelete = deleteHandler(item, self.data[index]['values'], + self.data) </span><span class="cx"> if canDelete: self.accountsList.Delete(index) </span><span class="lines">@@ -1931,7 +1961,7 @@ </span><span class="cx"> control = evt.GetEventObject() # Determine current panel </span><span class="rem">- panel = PANELS[self.currentPanelType] </span><span class="add">+ panel = self.panelsInfo[self.currentPanelType] </span><span class="cx"> # Scan through fields, seeing if this control corresponds to one # If marked as linkedTo, change the linked field </span><span class="lines">@@ -1989,7 +2019,7 @@ </span><span class="cx"> # Determine current panel # Scan through fields, seeing if this control corresponds to one # If marked as exclusive, set all other accounts of this type to False </span><span class="rem">- panel = PANELS[self.currentPanelType] </span><span class="add">+ panel = self.panelsInfo[self.currentPanelType] </span><span class="cx"> for (field, fieldInfo) in panel['fields'].iteritems(): </span><span class="lines">@@ -2008,7 +2038,7 @@ </span><span class="cx"> # Skip the current account if index != self.currentIndex: </span><span class="rem">- aPanel = PANELS[accountData['protocol']] </span><span class="add">+ aPanel = self.panelsInfo[accountData['protocol']] </span><span class="cx"> for (aField, aFieldInfo) in \ aPanel['fields'].iteritems(): if aFieldInfo.get('type') == 'currentPointer': </span></pre></div> <a id="trunkchandlerapplicationdialogsPublishCollectionpy"></a> <div class="modfile"><h4>Modified: trunk/chandler/application/dialogs/PublishCollection.py (14813 => 14814)</h4> <pre class="diff"> <span class="info">--- trunk/chandler/application/dialogs/PublishCollection.py 2007-06-22 16:08:29 UTC (rev 14813) +++ trunk/chandler/application/dialogs/PublishCollection.py 2007-06-22 16:59:17 UTC (rev 14814) </span><span class="lines">@@ -173,7 +173,8 @@ </span><span class="cx"> share = sharing.getShare(self.collection) self.share = share </span><span class="rem">- if share.conduit.account: </span><span class="add">+ account = getattr(share.conduit, 'account', None) + if account is not None: </span><span class="cx"> name = share.conduit.account.displayName else: name = u"(via ticket)" </span> </pre> </div> </div> </body> </html> ; </span><span class="rem">-There is a more detailed <a href="">tutorial</a> on the workings of the Feeds parcel that will explain more of the details of writing a parcel. </span><span class="add">+There is a more detailed <a href="http://chandler.osafoundation.org/docs/0.6/feeds-tutorial.html">tutorial</a> on the workings of the Feeds parcel that will fill in the details of writing a parcel. </span><span class="cx"> <p /> You can visit the Chandler home page for ideas on how to <a href="http://chandler.osafounation.org/getinvolved.php">get involved</a> with the Chandler project. <p /> </span> </pre> </div> </div> </body> </html> Sat, 13 Sep, 09:29
kten...@gmail.com }, </span><span class="add">+ &quot;INCOMING_FULL_NAME&quot; : { + &quot;attr&quot; : &quot;fullName&quot;, + &quot;type&quot; : &quot;string&quot;, + }, + &quot;INCOMING_SERVER&quot; : { + &quot;attr&quot; : &quot;host&quot;, + &quot;type&quot; : &quot;string&quot;, + }, + &quot;INCOMING_USERNAME&quot; : { + &quot;attr&quot; : &quot;username&quot;, + &quot;type&quot; : &quot;string&quot;, + }, + &quot;INCOMING_PASSWORD&quot; : { + &quot;attr&quot; : &quot;password&quot;, + &quot;type&quot; : &quot;password&quot;, + }, </span><span class="cx"> </span><span class="rem">- &quot;INCOMING_FOLDERS&quot; : { - &quot;attr&quot; : &quot;folders&quot;, - &quot;type&quot; : &quot;chandlerFolders&quot;, </span><span class="add">+ &quot;INCOMING_PORT&quot; : { + &quot;attr&quot; : &quot;port&quot;, + &quot;type&quot; : &quot;integer&quot;, + &quot;default&quot;: 143, + &quot;required&quot; : True, + }, + + &quot;INCOMING_PROTOCOL&quot; : { + &quot;attr&quot; : &quot;accountProtocol&quot;, + &quot;type&quot; : &quot;choice&quot;, + &quot;default&quot;: &quot;IMAP&quot;, + }, + + &quot;INCOMING_SECURE&quot; : { + &quot;attr&quot; : &quot;connectionSecurity&quot;, + &quot;type&quot; : &quot;radioEnumeration&quot;, + &quot;buttons&quot; : { + &quot;INCOMING_SECURE_NO&quot; : &quot;NONE&quot;, + &quot;INCOMING_TLS&quot; : &quot;TLS&quot;, + &quot;INCOMING_SSL&quot; : &quot;SSL&quot;, + }, + &quot;default&quot; : &quot;NONE&quot;, + &quot;linkedTo&quot; : + { + &quot;callback&quot;: &quot;getIncomingProtocol&quot;, + &quot;protocols&quot;: { + &quot;IMAP&quot;: (&quot;INCOMING_PORT&quot;, + { &quot;NONE&quot;:&quot;143&quot;, &quot;TLS&quot;:&quot;143&quot;, &quot;SSL&quot;:&quot;993&quot; } ), + &quot;POP&quot;: (&quot;INCOMING_PORT&quot;, + { &quot;NONE&quot;:&quot;110&quot;, &quot;TLS&quot;:&quot;110&quot;, &quot;SSL&quot;:&quot;995&quot; } ), + }, + } + }, + + &quot;INCOMING_FOLDERS&quot; : { + &quot;attr&quot; : &quot;folders&quot;, + &quot;type&quot; : &quot;chandlerFolders&quot;, + }, + }, + &quot;id&quot; : &quot;INCOMINGPanel&quot;, + &quot;order&quot;: 0, + &quot;saveHandler&quot; : IncomingSaveHandler, + &quot;validationHandler&quot; : IncomingValidationHandler, + &quot;deleteHandler&quot; : IncomingDeleteHandler, + &quot;displayName&quot; : u&quot;INCOMING_DESCRIPTION&quot;, + &quot;protocol&quot; : &quot;IMAP&quot;, + &quot;class&quot; : Mail.IMAPAccount, + &quot;description&quot; : _(u&quot;Incoming mail&quot;), + &quot;callbacks&quot; : ( + (&quot;INCOMING_DISCOVERY&quot;, &quot;OnIncomingDiscovery&quot;), + ), + &quot;messages&quot; : (&quot;INCOMING_MESSAGE&quot;,), + &quot;init&quot; : &quot;initIncomingPanel&quot;, </span><span class="cx"> }, </span><span class="rem">- }, - &quot;id&quot; : &quot;INCOMINGPanel&quot;, - &quot;order&quot;: 0, - &quot;saveHandler&quot; : IncomingSaveHandler, - &quot;validationHandler&quot; : IncomingValidationHandler, - &quot;deleteHandler&quot; : IncomingDeleteHandler, - &quot;displayName&quot; : u&quot;INCOMING_DESCRIPTION&quot;, - &quot;description&quot; : _(u&quot;Incoming mail&quot;), - &quot;callbacks&quot; : ( - (&quot;INCOMING_DISCOVERY&quot;, &quot;OnIncomingDiscovery&quot;), - ), - &quot;messages&quot; : (&quot;INCOMING_MESSAGE&quot;,), - &quot;init&quot; : &quot;initIncomingPanel&quot;, - }, - &quot;OUTGOING&quot; : { - &quot;fields&quot; : { - &quot;OUTGOING_DESCRIPTION&quot; : { - &quot;attr&quot; : &quot;displayName&quot;, - &quot;type&quot; : &quot;string&quot;, - &quot;required&quot; : True, - &quot;default&quot;: _(u&quot;New Outgoing Mail Account&quot;), - }, - &quot;OUTGOING_FROM&quot; : { - &quot;attr&quot; : &quot;emailAddress&quot;, - &quot;type&quot; : &quot;string&quot;, - }, - &quot;OUTGOING_SERVER&quot; : { - &quot;attr&quot; : &quot;host&quot;, - &quot;type&quot; : &quot;string&quot;, - }, - &quot;OUTGOING_PORT&quot; : { - &quot;attr&quot; : &quot;port&quot;, - &quot;type&quot; : &quot;integer&quot;, - &quot;default&quot;: 25, - &quot;required&quot; : True, - }, - &quot;OUTGOING_SECURE&quot; : { - &quot;attr&quot; : &quot;connectionSecurity&quot;, - &quot;type&quot; : &quot;radioEnumeration&quot;, - &quot;buttons&quot; : { - &quot;OUTGOING_SECURE_NO&quot; : &quot;NONE&quot;, - &quot;OUTGOING_SECURE_TLS&quot; : &quot;TLS&quot;, - &quot;OUTGOING_SECURE_SSL&quot; : &quot;SSL&quot;, </span><span class="add">+ &quot;OUTGOING&quot; : { + &quot;fields&quot; : { + &quot;OUTGOING_DESCRIPTION&quot; : { + &quot;attr&quot; : &quot;displayName&quot;, + &quot;type&quot; : &quot;string&quot;, + &quot;required&quot; : True, + &quot;default&quot;: _(u&quot;New Outgoing Mail Account&quot;), </span><span class="cx"> }, </span><span class="rem">- &quot;default&quot; : &quot;NONE&quot;, - &quot;linkedTo&quot; : - (&quot;OUTGOING_PORT&quot;, { &quot;NONE&quot;:&quot;25&quot;, &quot;TLS&quot;:&quot;25&quot;, &quot;SSL&quot;:&quot;465&quot; }), </span><span class="add">+ &quot;OUTGOING_FROM&quot; : { + &quot;attr&quot; : &quot;emailAddress&quot;, + &quot;type&quot; : &quot;string&quot;, + }, + &quot;OUTGOING_SERVER&quot; : { + &quot;attr&quot; : &quot;host&quot;, + &quot;type&quot; : &quot;string&quot;, + }, + &quot;OUTGOING_PORT&quot; : { + &quot;attr&quot; : &quot;port&quot;, + &quot;type&quot; : &quot;integer&quot;, + &quot;default&quot;: 25, + &quot;required&quot; : True, + }, + &quot;OUTGOING_SECURE&quot; : { + &quot;attr&quot; : &quot;connectionSecurity&quot;, + &quot;type&quot; : &quot;radioEnumeration&quot;, + &quot;buttons&quot; : { + &quot;OUTGOING_SECURE_NO&quot; : &quot;NONE&quot;, + &quot;OUTGOING_SECURE_TLS&quot; : &quot;TLS&quot;, + &quot;OUTGOING_SECURE_SSL&quot; : &quot;SSL&quot;, + }, + &quot;default&quot; : &quot;NONE&quot;, + &quot;linkedTo&quot; : + (&quot;OUTGOING_PORT&quot;, + { &quot;NONE&quot;:&quot;25&quot;, &quot;TLS&quot;:&quot;25&quot;, &quot;SSL&quot;:&quot;465&quot; }), + }, + &quot;OUTGOING_USE_AUTH&quot; : { + &quot;attr&quot; : &quot;useAuth&quot;, + &quot;type&quot; : &quot;boolean&quot;, + }, + &quot;OUTGOING_USERNAME&quot; : { + &quot;attr&quot; : &quot;username&quot;, + &quot;type&quot; : &quot;string&quot;, + }, + &quot;OUTGOING_PASSWORD&quot; : { + &quot;attr&quot; : &quot;password&quot;, + &quot;type&quot; : &quot;password&quot;, + }, + }, + &quot;id&quot; : &quot;OUTGOINGPanel&quot;, + &quot;order&quot;: 1, + &quot;saveHandler&quot; : OutgoingSaveHandler, + &quot;deleteHandler&quot; : OutgoingDeleteHandler, + &quot;displayName&quot; : u&quot;OUTGOING_DESCRIPTION&quot;, + &quot;description&quot; : _(u&quot;Outgoing mail&quot;), + &quot;protocol&quot; : &quot;SMTP&quot;, + &quot;class&quot; : Mail.SMTPAccount, + &quot;callbacks&quot; : ((&quot;OUTGOING_DISCOVERY&quot;, &quot;OnOutgoingDiscovery&quot;),), + &quot;messages&quot; : (&quot;OUTGOING_MESSAGE&quot;,), </span><span class="cx"> }, </span><span class="rem">- &quot;OUTGOING_USE_AUTH&quot; : { - &quot;attr&quot; : &quot;useAuth&quot;, - &quot;type&quot; : &quot;boolean&quot;, - }, - &quot;OUTGOING_USERNAME&quot; : { - &quot;attr&quot; : &quot;username&quot;, - &quot;type&quot; : &quot;string&quot;, - }, - &quot;OUTGOING_PASSWORD&quot; : { - &quot;attr&quot; : &quot;password&quot;, - &quot;type&quot; : &quot;password&quot;, - }, - }, - &quot;id&quot; : &quot;OUTGOINGPanel&quot;, - &quot;order&quot;: 1, - &quot;saveHandler&quot; : OutgoingSaveHandler, - &quot;deleteHandler&quot; : OutgoingDeleteHandler, - &quot;displayName&quot; : u&quot;OUTGOING_DESCRIPTION&quot;, - &quot;description&quot; : _(u&quot;Outgoing mail&quot;), - &quot;callbacks&quot; : ((&quot;OUTGOING_DISCOVERY&quot;, &quot;OnOutgoingDiscovery&quot;),), - &quot;messages&quot; : (&quot;OUTGOING_MESSAGE&quot;,), - }, </span><span class="cx"> </span><span class="rem">- &quot;SHARING_HUB&quot; : { - &quot;fields&quot; : { - &quot;HUBSHARING_DESCRIPTION&quot; : { - &quot;attr&quot; : &quot;displayName&quot;, - &quot;type&quot; : &quot;string&quot;, - &quot;required&quot; : True, - &quot;default&quot;: _(u&quot;Chandler Hub23,7 +1460,8 @@ </span><span class="cx"> port = wx.xrc.XRCCTRL(self.currentPanel, &quot;INCOMING_PORT&quot;) port.SetValue(str(account.port)) </span><span class="rem">- fieldInfo = PANELS[self.currentPanelType]['fields']['INCOMING_SECURE'] </span><span class="add">+ fields = self.panelsInfo[self.currentPa[ Mon, 23 Mar, 10:21
Message listThread · Author · Date
Box list
Jul 20081
Mar 20081
Jan 20085
Dec 200715
Nov 20078
Oct 200749
Sep 200725
Aug 2007137
Jul 2007246
Jun 200761
May 200710
Apr 200744
Mar 200716
Feb 20076
Jan 200721
Dec 20065
Nov 200613
Oct 200613
Sep 200623
Aug 200643
Jul 200621
Jun 200652
May 200652
Apr 200629
Mar 200639
Feb 200677
Jan 200620
Dec 200510
Sep 20058
Jun 20052
Apr 20051
Mar 20052
Feb 20054
Dec 20045
Nov 20042
Sep 20041
Aug 20045
Jun 20047
Apr 20041
Feb 20042
Jan 20042
Dec 20031
Nov 20039
Aug 20036
Jun 20033
Mar 20031
Feb 20031
Jan 20033
Dec 20021
Nov 20022
Oct 20024