Projects
Kolab:Winterfell
iRony
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 4
View file
iRony.spec
Changed
@@ -32,7 +32,7 @@ Name: iRony Version: 0.4 -Release: 0.20160315.git%{?dist} +Release: 0.20160321.git%{?dist} Summary: DAV for Kolab Groupware Group: Applications/Internet
View file
debian.changelog
Changed
@@ -1,4 +1,4 @@ -irony (0.4~dev20160315-0~kolab1) unstable; urgency=low +irony (0.4~dev20160321-0~kolab1) unstable; urgency=low * Release of version 0.4.0
View file
iRony-0.4.tar.gz/lib/Kolab/CardDAV/ContactsBackend.php
Changed
@@ -77,6 +77,19 @@ 'assistant' => 'assistant', ); + private $phonetypes = array( + 'main' => 'voice', + 'homefax' => 'home,fax', + 'workfax' => 'work,fax', + 'mobile' => 'cell', + 'other' => 'textphone', + ); + + private $improtocols = array( + 'jabber' => 'xmpp', + ); + + /** * Read available contact folders from server */ @@ -111,7 +124,6 @@ return $this->sources; } - /** * Getter for a kolab_storage_folder representing the address book for the given ID * @@ -134,7 +146,6 @@ } } - /** * Returns the list of addressbooks for a specific user. * @@ -541,7 +552,6 @@ return false; } - /** * Set User-Agent string of the connected client */ @@ -562,7 +572,6 @@ } } - /** * Find an object and the containing folder by UID * @@ -610,26 +619,15 @@ /********** Data conversion utilities ***********/ - private $phonetypes = array( - 'main' => 'voice', - 'homefax' => 'home,fax', - 'workfax' => 'work,fax', - 'mobile' => 'cell', - 'other' => 'textphone', - ); - - private $improtocols = array( - 'jabber' => 'xmpp', - ); - - /** * Parse the given VCard string into a hash array kolab_format_contact can handle * * @param string VCard data block + * @param string Contact UID + * * @return array Hash array with contact properties or null on failure */ - private function parse_vcard($cardData, $uid) + public function parse_vcard($cardData, $uid = null) { try { // use already parsed object @@ -658,7 +656,6 @@ return null; } - /** * Build a valid VCard format block from the given contact record * @@ -1095,7 +1092,7 @@ // translate custom properties with a matching prefix to labelled items foreach ((array)$contact['x-custom'] as $prop) { $name = $prop[0]; - if (strpos($name, $propname) === 0) { + if ($vc->{$name} && strpos($name, $propname) === 0) { $label = strtolower(substr($name, strlen($propname)+1)); $this->_replace_with_labelled_prop($vc, $name, $propname, $label); } @@ -1166,5 +1163,4 @@ { return sprintf('"%s-%d"', substr(md5($contact['uid']), 0, 16), $contact['_msguid']); } - }
View file
iRony-0.4.tar.gz/test/Unit/CardDAV/ContactsBackend.php
Changed
@@ -10,6 +10,7 @@ /** + * Test vCard PHOTO (T1082) */ function test_T1082() {
View file
iRony.dsc
Changed
@@ -2,7 +2,7 @@ Source: irony Binary: irony Architecture: all -Version: 0.4~dev20160315-0~kolab1 +Version: 0.4~dev20160321-0~kolab1 Maintainer: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Uploaders: Paul Klos <kolab@klos2day.nl> Homepage: http://www.kolab.org/
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.