From xmlrpc@opengroupware.org Sat Aug 5 19:11:27 2006 From: xmlrpc@opengroupware.org (Adam Tauno Williams) Date: Sat, 05 Aug 2006 14:11:27 -0400 Subject: [OGo-XML-RPC] LSDBObjectCommandException - no participants set In-Reply-To: <1151588729.3831.15.camel@aleph.whitemice.org> References: <92fad8ce0601181151t1e9cb9dbh8b249e83dade2fab@mail.gmail.com> <1137768940.7069.6.camel@aleph.whitemice.org> <92fad8ce0601201921j2c7f8864pc28747da04dd5652@mail.gmail.com> <7cf0134682f745468ab6592f80a1a31f@opengroupware.org> <1151587958.3831.11.camel@aleph.whitemice.org> <1151588729.3831.15.camel@aleph.whitemice.org> Message-ID: <1154801487.4355.7.camel@aleph.whitemice.org> > > > > The problem is that wether I try to insert an appointment > > > > without any participants, or wether I put some participants in it, I > > > > always get the same exception ("no participants set"). It seems that > > > > this version of Ogo requires participants to insert and appointment, > > > > and that there is some bug in xml-rpc (or I am doing something wrong > > > > or have something misconfigured) > > > Maybe you should create a bugreport on the matter and attach a small > > > Python script which reproduces the issue. > > http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=1683 > > http://bugzilla.opengroupware.org/bugzilla/attachment.cgi?id=434&action=view > What I'm seeing is that I can create *ONE* appointment, and subsequent > calls to appointment.insert fail. Restarting ogo-xmlrpcd allows me to > create one more appointment, etc... This turned out to be a packaging bug; probably due to compiler optimizations. Reportedly CentOS packages after July 11 don't exhibit the problem. From xmlrpc@opengroupware.org Sat Aug 5 19:14:52 2006 From: xmlrpc@opengroupware.org (Adam Tauno Williams) Date: Sat, 05 Aug 2006 14:14:52 -0400 Subject: [OGo-XML-RPC] Determining object type from id In-Reply-To: <1142255164.26436.10.camel@aleph.whitemice.org> References: <1142251955.26436.6.camel@aleph.whitemice.org> <712D5636-E163-4C10-A162-A4492F877939@opengroupware.org> <1142255164.26436.10.camel@aleph.whitemice.org> Message-ID: <1154801692.4355.9.camel@aleph.whitemice.org> On Mon, 2006-03-13 at 08:06 -0500, Adam Tauno Williams wrote: > > > - which is good. But is there a mechanism for determining what > > > type of > > > object (appointment, contact, enterprise, etc...) that > > > "skyrix://.../669160" is? > > This can be done using LSTypeManager in LSFoundation. But apparently > > its operations are not exposed in XML-RPC ... > Grrr > > bug report? ;-) > http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=1708 To anyone interested, a patch that adds a generic.GetTypeById(objectId) method has been attached to this bug. From xmlrpc@opengroupware.org Mon Aug 7 05:13:24 2006 From: xmlrpc@opengroupware.org (Adam Tauno Williams) Date: Mon, 07 Aug 2006 00:13:24 -0400 Subject: [OGo-XML-RPC] Resources & Appointments In-Reply-To: <1119276034.9967.21.camel@localhost> References: <1112881128.6079.24.camel@laptop01.whitemice.org> <5B07863A-1E68-43E3-9AD6-FCCAABF9DC18@opengroupware.org> <1119276034.9967.21.camel@localhost> Message-ID: <1154924004.4350.1.camel@aleph.whitemice.org> > > > Is there a way to add a resource to a meeting, or see resources > > > associated with a meeting? > > This is a regular CSV field in the appointment table (and it should > > be exported using XML-RPC). > Is there a current bug open for this? > > > I thought maybe a resource id could be added as a participant (sort of > > > like it works in iCal files), but that didn't seem to work. > :) Yep, actually I tried that just yesterday. Didn't work. :( > > We consider changing the resource mechanism in 1.1 to work this way. > Sounds much nicer. Just so long as the object types are distinguished > for the XML-RPC client > { participants = { { id=####; type=XXXXXX }, { id=#######; > type=XXXX } } } > The current participant list enumerates a lot of information which I > think isn't always or even usually necessary. http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=1599 now has an attachment that implements an appointment.setResources(appId, resourceList) method. From xmlrpc@opengroupware.org Wed Aug 9 09:24:51 2006 From: xmlrpc@opengroupware.org (=?ISO-8859-1?Q?Fabi_Avil=E9s?=) Date: Wed, 9 Aug 2006 10:24:51 +0200 Subject: [OGo-XML-RPC] Create accounts, company_value table Message-ID: <919866d50608090124k715bd638i30e3294ce690bcb0@mail.gmail.com> ------=_Part_37370_10031435.1155111891539 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi everyone, this is my first time writing in this list. Well, I have a problem creating new accounts in ogo. I use the method "account.insert", and this creates a new account, but my problem is that I have all the data about the new user in a LDAP, and one of those is the e-mail. When we create new contacts, whe store the e-amail in the table company_value, but when creating new accounts, we don't know how to store the e-mail from the LDAP in this table, because the method "account.insert" doesn't do this. If anyone knows a solution, please tell us. Fabi ------=_Part_37370_10031435.1155111891539 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi everyone, this is my first time writing in this list. Well, I have a problem creating new accounts in ogo. I use the method "account.insert", and this creates a new account, but my problem is that I have all the data about the new user in a LDAP, and one of those is the e-mail. When we create new contacts, whe store the e-amail in the table company_value, but when creating new accounts, we don't know how to store the e-mail from the LDAP in this table, because the method " account.insert" doesn't do this. If anyone knows a solution, please tell us.

Fabi
------=_Part_37370_10031435.1155111891539-- From xmlrpc@opengroupware.org Wed Aug 9 09:29:39 2006 From: xmlrpc@opengroupware.org (Helge Hess) Date: Wed, 9 Aug 2006 10:29:39 +0200 Subject: [OGo-XML-RPC] Create accounts, company_value table In-Reply-To: <919866d50608090124k715bd638i30e3294ce690bcb0@mail.gmail.com> References: <919866d50608090124k715bd638i30e3294ce690bcb0@mail.gmail.com> Message-ID: <4B3B84D7-C6F4-46C0-8D29-8563173D29AF@opengroupware.org> On Aug 9, 2006, at 10:24, Fabi Avil=E9s wrote: > When we create new contacts, whe store the e-amail in the table =20 > company_value, but when creating new accounts, we don't know how to =20= > store the e-mail from the LDAP in this table, because the method " =20 > account.insert" doesn't do this. You need to use the contact/person functions to change that =20 information after creating the account. As you mention the account =20 methods do not work on contact fields of the account. Greets, Helge --=20 Helge Hess http://docs.opengroupware.org/Members/helge/ From xmlrpc@opengroupware.org Wed Aug 9 11:27:40 2006 From: xmlrpc@opengroupware.org (Adam Tauno Williams) Date: Wed, 09 Aug 2006 06:27:40 -0400 Subject: [OGo-XML-RPC] Create accounts, company_value table In-Reply-To: <919866d50608090124k715bd638i30e3294ce690bcb0@mail.gmail.com> References: <919866d50608090124k715bd638i30e3294ce690bcb0@mail.gmail.com> Message-ID: <1155119261.4250.7.camel@aleph.whitemice.org> On Wed, 2006-08-09 at 10:24 +0200, Fabi Avilés wrote: > Hi everyone, this is my first time writing in this list. Well, I have > a problem creating new accounts in ogo. I use the method > "account.insert", and this creates a new account, but my problem is > that I have all the data about the new user in a LDAP, and one of > those is the e-mail. When we create new contacts, whe store the > e-amail in the table company_value, but when creating new accounts, we > don't know how to store the e-mail from the LDAP in this table, > because the method " account.insert" doesn't do this. If anyone knows > a solution, please tell us. An account is also a person; just to a person.getById and person.update with the same pkey as the new account. You can take a look at the source for LDAPAccountSync if you want an example. http://docs.opengroupware.org/Members/whitemice/OGoMojo/ http://docs.opengroupware.org/Members/whitemice/OGoMojo/OGoMojo-0.0.19.tar.gz/view From xmlrpc@opengroupware.org Thu Aug 10 07:30:07 2006 From: xmlrpc@opengroupware.org (=?ISO-8859-1?Q?Fabi_Avil=E9s?=) Date: Thu, 10 Aug 2006 08:30:07 +0200 Subject: [OGo-XML-RPC] Re: Xmlrpc digest, Vol 1 #229 - 3 msgs In-Reply-To: <20060810042612.9344.77526.Mailman@mail.opengroupware.org> References: <20060810042612.9344.77526.Mailman@mail.opengroupware.org> Message-ID: <919866d50608092330m630b320cv97e4babf4f7f0d77@mail.gmail.com> ------=_Part_65337_23637638.1155191407638 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thank you for your answers, I've done it using the method update for person= , using a Hashtable as argument, in wich I've got other Hashtable for the extended attributes, like email1. Thanks for your help. Bye 2006/8/10, xmlrpc-request@opengroupware.org < xmlrpc-request@opengroupware.org>: > > Send Xmlrpc mailing list submissions to > xmlrpc@opengroupware.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.opengroupware.org/mailman/listinfo/xmlrpc > or, via email, send a message with subject or body 'help' to > xmlrpc-request@opengroupware.org > > You can reach the person managing the list at > xmlrpc-admin@opengroupware.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Xmlrpc digest..." > > > Today's Topics: > > 1. Create accounts, company_value table > (=3D?ISO-8859-1?Q?Fabi_Avil=3DE9s?=3D) > 2. Re: Create accounts, company_value table (Helge Hess) > 3. Re: Create accounts, company_value table (Adam Tauno Williams) > > --__--__-- > > Message: 1 > Date: Wed, 9 Aug 2006 10:24:51 +0200 > From: "=3D?ISO-8859-1?Q?Fabi_Avil=3DE9s?=3D" > To: xmlrpc@opengroupware.org > Subject: [OGo-XML-RPC] Create accounts, company_value table > Reply-To: xmlrpc@opengroupware.org > > ------=3D_Part_37370_10031435.1155111891539 > Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed > Content-Transfer-Encoding: 7bit > Content-Disposition: inline > > Hi everyone, this is my first time writing in this list. Well, I have a > problem creating new accounts in ogo. I use the method "account.insert", > and > this creates a new account, but my problem is that I have all the data > about > the new user in a LDAP, and one of those is the e-mail. When we create ne= w > contacts, whe store the e-amail in the table company_value, but when > creating new accounts, we don't know how to store the e-mail from the LDA= P > in this table, because the method "account.insert" doesn't do this. If > anyone knows a solution, please tell us. > > Fabi > > ------=3D_Part_37370_10031435.1155111891539 > Content-Type: text/html; charset=3DISO-8859-1 > Content-Transfer-Encoding: 7bit > Content-Disposition: inline > > Hi everyone, this is my first time writing in this list. Well, I have a > problem creating new accounts in ogo. I use the method > "account.insert", and this creates a new account, but my proble= m > is that I have all the data about the new user in a LDAP, and one of thos= e > is the e-mail. When we create new contacts, whe store the e-amail in the > table company_value, but when creating new accounts, we don't know how to > store the e-mail from the LDAP in this table, because the method " > account.insert" doesn't do this. If anyone knows a solution, please > tell us.

Fabi
> > ------=3D_Part_37370_10031435.1155111891539-- > > --__--__-- > > Message: 2 > From: Helge Hess > Subject: Re: [OGo-XML-RPC] Create accounts, company_value table > Date: Wed, 9 Aug 2006 10:29:39 +0200 > To: xmlrpc@opengroupware.org > Reply-To: xmlrpc@opengroupware.org > > On Aug 9, 2006, at 10:24, Fabi Avil=3DE9s wrote: > > When we create new contacts, whe store the e-amail in the table =3D20 > > company_value, but when creating new accounts, we don't know how to =3D= 20=3D > > > store the e-mail from the LDAP in this table, because the method " =3D2= 0 > > account.insert" doesn't do this. > > You need to use the contact/person functions to change that =3D20 > information after creating the account. As you mention the account =3D20 > methods do not work on contact fields of the account. > > Greets, > Helge > --=3D20 > Helge Hess > http://docs.opengroupware.org/Members/helge/ > > > > --__--__-- > > Message: 3 > Subject: Re: [OGo-XML-RPC] Create accounts, company_value table > From: Adam Tauno Williams > To: xmlrpc@opengroupware.org > Date: Wed, 09 Aug 2006 06:27:40 -0400 > Reply-To: xmlrpc@opengroupware.org > > On Wed, 2006-08-09 at 10:24 +0200, Fabi Avil=E9s wrote: > > Hi everyone, this is my first time writing in this list. Well, I have > > a problem creating new accounts in ogo. I use the method > > "account.insert", and this creates a new account, but my problem is > > that I have all the data about the new user in a LDAP, and one of > > those is the e-mail. When we create new contacts, whe store the > > e-amail in the table company_value, but when creating new accounts, we > > don't know how to store the e-mail from the LDAP in this table, > > because the method " account.insert" doesn't do this. If anyone knows > > a solution, please tell us. > > An account is also a person; just to a person.getById and person.update > with the same pkey as the new account. You can take a look at the > source for LDAPAccountSync if you want an example. > > http://docs.opengroupware.org/Members/whitemice/OGoMojo/ > > http://docs.opengroupware.org/Members/whitemice/OGoMojo/OGoMojo-0.0.19.ta= r.gz/view > > > > --__--__-- > > -- > OpenGroupware.org XML-RPC > xmlrpc@opengroupware.org > http://mail.opengroupware.org/mailman/listinfo/xmlrpc > > End of Xmlrpc Digest > ------=_Part_65337_23637638.1155191407638 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thank you for your answers, I've done it using the method update for person= , using a Hashtable as argument, in wich I've got other Hashtable for the e= xtended attributes, like email1. Thanks for your help.  Bye

2006/8/10, xmlrpc-request@opengroupware.org <xmlrpc-request@opengroupware.org>:=
Send Xmlrpc maili= ng list submissions to
        <= a href=3D"mailto:xmlrpc@opengroupware.org"> xmlrpc@opengroupware.org

To subscribe or unsubscribe via the Wor= ld Wide Web, visit
        http://mail.op= engroupware.org/mailman/listinfo/xmlrpc
or, via email, send a message with subject or body 'help' to
&nb= sp;       xmlrpc-request@opengroupware.org

You can r= each the person managing the list at
        xmlrpc-admin@opengroupware.org

When reply= ing, please edit your Subject line so it is more specific
than "Re:= Contents of Xmlrpc digest..."


Today's Topics:

   1. Create accounts, company_val= ue table (=3D?ISO-8859-1?Q?Fabi_Avil=3DE9s?=3D)
   2. Re: Crea= te accounts, company_value table (Helge Hess)
   3. Re: Create= accounts, company_value table (Adam Tauno Williams)

--__--__--

Message: 1
Date: Wed, 9 Aug 2006 10:24:51 +020= 0
From: "=3D?ISO-8859-1?Q?Fabi_Avil=3DE9s?=3D" <fabiavmz@gmail.com>
To: xmlrpc@opengroupware.org
Subject: [OGo-XML-RPC] Create accounts, com= pany_value table
Reply-To: x= mlrpc@opengroupware.org

------=3D_Part_37370_10031435.1155111891= 539
Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed
Cont= ent-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi everyo= ne, this is my first time writing in this list. Well, I have a
problem c= reating new accounts in ogo. I use the method " account.insert", and
this creates a new account, but my problem is = that I have all the data about
the new user in a LDAP, and one of those = is the e-mail. When we create new
contacts, whe store the e-amail in the= table company_value, but when
creating new accounts, we don't know how to store the e-mail from the L= DAP
in this table, because the method "account.insert" doesn't= do this. If
anyone knows a solution, please tell us.

Fabi

------=3D_Part_37370_10031435.1155111891539
Content-Type: text/html;= charset=3DISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposi= tion: inline

Hi everyone, this is my first time writing in this list= . Well, I have a problem creating new accounts in ogo. I use the method &am= p;quot;account.insert&quot;, and this creates a new account, but my pro= blem is that I have all the data about the new user in a LDAP, and one of t= hose is the e-mail. When we create new contacts, whe store the e-amail in t= he table company_value, but when creating new accounts, we don't know how t= o store the e-mail from the LDAP in this table, because the method &quo= t;
account.insert&quot; doesn't do this. If anyone knows a solution, p= lease tell us.<br><br>Fabi<br>

------=3D_Part_3737= 0_10031435.1155111891539--

--__--__--

Message: 2
From: Hel= ge Hess < helge.hess@opengroupware.or= g>
Subject: Re: [OGo-XML-RPC] Create accounts, company_value tabl= e
Date: Wed, 9 Aug 2006 10:29:39 +0200
To: xmlrpc@opengroupware.org
Reply-To: xmlrpc@opengroupware.org

On Aug 9, 2006, at 10:24, Fa= bi Avil=3DE9s wrote:
> When we create new contacts, whe store the e-a= mail in the table =3D20
> company_value, but when creating new accounts, we don't know how t= o =3D20=3D

> store the e-mail from the LDAP in this table, becaus= e the method " =3D20
> account.insert" doesn't do this.
=
You need to use the contact/person functions to change that =3D20
inform= ation after creating the account. As you mention the account =3D20
metho= ds do not work on contact fields of the account.

Greets,
 &n= bsp; Helge
--=3D20
Helge Hess
http://docs.opengroupware.org/Members/helge/



= --__--__--

Message: 3
Subject: Re: [OGo-XML-RPC] Create accounts,= company_value table
From: Adam Tauno Williams <awilliam@whitemice.org>
To: xmlrpc@opengroupware.org
Date: Wed, 09 Aug 2006 06:27:40 -04= 00
Reply-To: xmlrpc@opengroupw= are.org

On Wed, 2006-08-09 at 10:24 +0200, Fabi Avil=E9s wrote:<= br>> Hi everyone, this is my first time writing in this list. Well, I ha= ve
> a problem creating new accounts in ogo. I use the method
> &= quot;account.insert", and this creates a new account, but my problem i= s
> that I have all the data about the new user in a LDAP, and one of
> those is the e-mail. When we create new contacts, whe store the> e-amail in the table company_value, but when creating new accounts, w= e
> don't know how to store the e-mail from the LDAP in this table,
> because the method " account.insert" doesn't do this. If= anyone knows
> a solution, please tell us.

An account is also= a person; just to a person.getById and person.update
with the same pkey= as the new account.  You can take a look at the
source for LDAPAccountSync if you want an example.

http://docs.opengro= upware.org/Members/whitemice/OGoMojo/
http://docs.opengroupware.org/Members/whitemice/OGoMojo/OGoMojo-0.0.19.tar.= gz/view



--__--__--

--
OpenGroupware.org XML-RP= C
xmlrpc@opengroupware.org
h= ttp://mail.opengroupware.org/mailman/listinfo/xmlrpc

End of Xmlr= pc Digest

------=_Part_65337_23637638.1155191407638-- From xmlrpc@opengroupware.org Mon Aug 14 17:27:30 2006 From: xmlrpc@opengroupware.org (=?ISO-8859-1?Q?Fabi_Avil=E9s?=) Date: Mon, 14 Aug 2006 18:27:30 +0200 Subject: [OGo-XML-RPC] Appointments with notification time Message-ID: <919866d50608140927n38e04a8cw859635ab91194b49@mail.gmail.com> ------=_Part_894_28634303.1155572850753 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi people, I want to know if it is possible to set the notification time of an appointment usime xmlrpc methods. I've tryed to put it into a hashtable with all the rest of the information, but it seems not to be the correct way. ------=_Part_894_28634303.1155572850753 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi people, I want to know if it is possible to set the notification time of an appointment usime xmlrpc methods. I've tryed to put it into a hashtable with all the rest of the information, but it seems not to be the correct way.
------=_Part_894_28634303.1155572850753-- From xmlrpc@opengroupware.org Mon Aug 14 17:30:05 2006 From: xmlrpc@opengroupware.org (=?ISO-8859-1?Q?Fabi_Avil=E9s?=) Date: Mon, 14 Aug 2006 18:30:05 +0200 Subject: [OGo-XML-RPC] Appointments with notification time Message-ID: <919866d50608140930g18a3fe76vdee8034083f0e886@mail.gmail.com> ------=_Part_962_29408052.1155573005499 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi people, I want to know if it is possible to set the notification time of an appointment usime xmlrpc methods. I've tryed to put it into a hashtable with all the rest of the information, but it seems not to be the correct way. ------=_Part_962_29408052.1155573005499 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi people, I want to know if it is possible to set the notification time of an appointment usime xmlrpc methods. I've tryed to put it into a hashtable with all the rest of the information, but it seems not to be the correct way. ------=_Part_962_29408052.1155573005499-- From xmlrpc@opengroupware.org Mon Aug 14 18:30:39 2006 From: xmlrpc@opengroupware.org (Adam Tauno Williams) Date: Mon, 14 Aug 2006 13:30:39 -0400 Subject: [OGo-XML-RPC] Appointments with notification time In-Reply-To: <919866d50608140927n38e04a8cw859635ab91194b49@mail.gmail.com> References: <919866d50608140927n38e04a8cw859635ab91194b49@mail.gmail.com> Message-ID: <1155576639.4054.4.camel@aleph.whitemice.org> On Mon, 2006-08-14 at 18:27 +0200, Fabi Avilés wrote: > Hi people, I want to know if it is possible to set the notification > time of an appointment usime xmlrpc methods. I've tryed to put it into > a hashtable with all the rest of the information, but it seems not to > be the correct way. No, unfortunately that attribute is not coded/decoded in SkyAppointmentDocument+XmlRpcCoding.m. But it you add - [self setNotificationTime: [_coder decodeObjectForKey:@"notificationTime"]]; - to "(id)initWithXmlRpcCoder:(XmlRpcDecoder *)_coder" and - [_coder encodeObject:[self notificationTime] forKey:@"notificationTime"]; - to "(void)encodeWithXmlRpcCoder:(id)_coder" it does work. I think there is a patch in Bugzilla for this. And add @"notificationTime" to the array in XmlRpcAPI/Actions.subproj/DirectAction+Appointment.m; mine looks like - - (void)_takeValuesDict:(NSDictionary *)_from toAppointment:(SkyAppointmentDocument **)_to { // TODO: document. Apparently those are the keys which can be changed? [*_to takeValuesFromObject:_from keys:@"startDate", @"endDate", @"title", @"location", @"cycleEndDate", @"type", @"comment", @"aptType", @"accessTeamId", @"writeAccess", @"notificationTime", @"resourceNames", @"parentDateId", nil]; } It is also important to know that notificationTime is not a time, it appears to be the number of minutes prior to the start time; so it is an integer (NSNumber). From xmlrpc@opengroupware.org Mon Aug 14 21:05:13 2006 From: xmlrpc@opengroupware.org (Helge Hess) Date: Mon, 14 Aug 2006 22:05:13 +0200 Subject: [OGo-XML-RPC] Appointments with notification time In-Reply-To: <1155576639.4054.4.camel@aleph.whitemice.org> References: <919866d50608140927n38e04a8cw859635ab91194b49@mail.gmail.com> <1155576639.4054.4.camel@aleph.whitemice.org> Message-ID: <51E21DA1-00E4-43A1-99B3-4112333E9462@opengroupware.org> On Aug 14, 2006, at 19:30, Adam Tauno Williams wrote: > It is also important to know that notificationTime is not a time, it > appears to be the number of minutes prior to the start time; Correct. And it is reset to NULL when skyaptnotify did send the notification. > so it is an integer (NSNumber). Its and INT in the database, yes. An NSNumber can store arbitary numbers (also floats, doubles, long longs etc). Greets, Helge -- Helge Hess http://docs.opengroupware.org/Members/helge/ From xmlrpc@opengroupware.org Tue Aug 15 05:55:07 2006 From: xmlrpc@opengroupware.org (Tobias Kaefer) Date: Tue, 15 Aug 2006 06:55:07 +0200 Subject: [OGo-XML-RPC] Resources and appointments Message-ID: <44E153AB.7060906@abas.de> Hi there! this is my first post to this list. I'm currently working on a JSR168-calendar-portlet as my thesis project and I'm using OpenGroupware as the backend server. Therefore I'm connecting to OpenGroupware through the XML-RPC-interface. The issue I'm dealing with right now is already documented in http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=1599. I'm using the nightly build packages for debian (deb http://download.opengroupware.org/nightly/packages/debian sid trunk) Version 1.1.svn1735-1. In these packages there is no "appointment.setResources"-method (or I'm not able to "find" it). Is there any solution, besides compiling OpenGroupware from source? Thanks for any advice. Greets Tobias Kaefer -- Mit freundlichen Gruessen / with kind regards Tobias Kaefer ABAS Software AG Portal-Entwicklung Suedendstr. 42 76135 Karlsruhe Telefon: +49 (0) 72 1 - 9 67 23 01 Telefax: +49 (0) 72 1 - 67 96 51 e-Mail: tok@abas.de Tobias.Kaefer@abas.de WWW: http://www.abas.de From xmlrpc@opengroupware.org Tue Aug 15 08:54:52 2006 From: xmlrpc@opengroupware.org (Helge Hess) Date: Tue, 15 Aug 2006 09:54:52 +0200 Subject: [OGo-XML-RPC] Resources and appointments In-Reply-To: <44E153AB.7060906@abas.de> References: <44E153AB.7060906@abas.de> Message-ID: <0D904197-BE7D-4902-B37B-2FE6D90C6023@opengroupware.org> On Aug 15, 2006, at 06:55, Tobias Kaefer wrote: > this is my first post to this list. I'm currently working on a > JSR168-calendar-portlet as my thesis project and I'm using > OpenGroupware > as the backend server. Nice! > Therefore I'm connecting to OpenGroupware through > the XML-RPC-interface. The issue I'm dealing with right now is already > documented in > http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=1599. I'm > using the nightly build packages for debian (deb > http://download.opengroupware.org/nightly/packages/debian sid trunk) > Version 1.1.svn1735-1. In these packages there is no > "appointment.setResources"-method (or I'm not able to "find" it). Is > there any solution, besides compiling OpenGroupware from source? I've just applied the patch to trunk. So you could wait a day for the patch getting into the packages. Greets, Helge -- Helge Hess http://docs.opengroupware.org/Members/helge/ From xmlrpc@opengroupware.org Tue Aug 15 09:10:34 2006 From: xmlrpc@opengroupware.org (Tobias Kaefer) Date: Tue, 15 Aug 2006 10:10:34 +0200 Subject: [OGo-XML-RPC] Resources and appointments In-Reply-To: <0D904197-BE7D-4902-B37B-2FE6D90C6023@opengroupware.org> References: <44E153AB.7060906@abas.de> <0D904197-BE7D-4902-B37B-2FE6D90C6023@opengroupware.org> Message-ID: <44E1817A.1040100@abas.de> Helge Hess schrieb: > On Aug 15, 2006, at 06:55, Tobias Kaefer wrote: >> this is my first post to this list. I'm currently working on a >> JSR168-calendar-portlet as my thesis project and I'm using OpenGroupware >> as the backend server. > > Nice! > I'm doing by best to get it "nice" ;) > I've just applied the patch to trunk. So you could wait a day for the > patch getting into the packages. That's really great! I appreciate the immediate responce! Thank you. I'm looking forward for the new packages. Greets Tobias From xmlrpc@opengroupware.org Tue Aug 15 10:41:14 2006 From: xmlrpc@opengroupware.org (Adam Tauno Williams) Date: Tue, 15 Aug 2006 05:41:14 -0400 Subject: [OGo-XML-RPC] Resources and appointments In-Reply-To: <44E1817A.1040100@abas.de> References: <44E153AB.7060906@abas.de> <0D904197-BE7D-4902-B37B-2FE6D90C6023@opengroupware.org> <44E1817A.1040100@abas.de> Message-ID: <1155634874.5234.3.camel@aleph.whitemice.org> On Tue, 2006-08-15 at 10:10 +0200, Tobias Kaefer wrote: > Helge Hess schrieb: > > On Aug 15, 2006, at 06:55, Tobias Kaefer wrote: > >> this is my first post to this list. I'm currently working on a > >> JSR168-calendar-portlet as my thesis project and I'm using OpenGroupware > >> as the backend server. > > Nice! > I'm doing by best to get it "nice" ;) > > I've just applied the patch to trunk. So you could wait a day for the > > patch getting into the packages. > That's really great! I appreciate the immediate responce! Thank you. I'm looking forward for the new packages. I'm the author of the patch. FYI, the example in bugzilla is wrong. The example says: server.appointment.setResources("25730", [ "25810", "25830"]); - but in fact you want to call it with the actual resource names, like: server.appointment.setResources("25730", [ "North Conference Room", "Video Projector 3"]); I'd *assumed* that the resource list stored objectIds like the write list field, but it appears to actually store resource names. From xmlrpc@opengroupware.org Tue Aug 15 11:06:59 2006 From: xmlrpc@opengroupware.org (=?ISO-8859-1?Q?Fabi_Avil=E9s?=) Date: Tue, 15 Aug 2006 12:06:59 +0200 Subject: [OGo-XML-RPC] Re: Xmlrpc digest, Vol 1 #231 - 4 msgs In-Reply-To: <20060815042627.19043.89007.Mailman@mail.opengroupware.org> References: <20060815042627.19043.89007.Mailman@mail.opengroupware.org> Message-ID: <919866d50608150306m513d371en71e9f5a4d65a67e2@mail.gmail.com> ------=_Part_17506_16925301.1155636419400 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Thank you, I have other solution, because I'm using xmlrpc and access to data base, so I will do it in other way.Bu thank you any way. ------=_Part_17506_16925301.1155636419400 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thank you, I have other solution, because I'm using xmlrpc and access to data base, so I will do it in other way.Bu thank you any way.
------=_Part_17506_16925301.1155636419400-- From xmlrpc@opengroupware.org Wed Aug 16 07:30:57 2006 From: xmlrpc@opengroupware.org (Tobias Kaefer) Date: Wed, 16 Aug 2006 08:30:57 +0200 Subject: [OGo-XML-RPC] Resources and appointments In-Reply-To: <1155634874.5234.3.camel@aleph.whitemice.org> References: <44E153AB.7060906@abas.de> <0D904197-BE7D-4902-B37B-2FE6D90C6023@opengroupware.org> <44E1817A.1040100@abas.de> <1155634874.5234.3.camel@aleph.whitemice.org> Message-ID: <44E2BBA1.2090903@abas.de> Adam Tauno Williams schrieb: > I'm the author of the patch. Thanks for work work! > FYI, the example in bugzilla is wrong. The > example says: > server.appointment.setResources("25730", [ "25810", "25830"]); > - but in fact you want to call it with the actual resource names, like: > server.appointment.setResources("25730", [ "North Conference Room", > "Video Projector 3"]); > > I'd *assumed* that the resource list stored objectIds like the write > list field, but it appears to actually store resource names. > That's good to know. Is there a possibility that the behaviour could be changed to server.appointment.setResources("25730", [ "25810", "25830"]); Because I like it more to have object ids to deal with, than a changeable plaintext argument. I'm not that much into Objective-C, so it is not a quick job for me to check the possiblities. Greets Tobi From xmlrpc@opengroupware.org Wed Aug 16 15:00:06 2006 From: xmlrpc@opengroupware.org (Adam Tauno Williams) Date: Wed, 16 Aug 2006 10:00:06 -0400 Subject: [OGo-XML-RPC] Resources and appointments In-Reply-To: <44E2BBA1.2090903@abas.de> References: <44E153AB.7060906@abas.de> <0D904197-BE7D-4902-B37B-2FE6D90C6023@opengroupware.org> <44E1817A.1040100@abas.de> <1155634874.5234.3.camel@aleph.whitemice.org> <44E2BBA1.2090903@abas.de> Message-ID: <1155736806.4057.21.camel@aleph.whitemice.org> > > I'm the author of the patch. > Thanks for work work! > > FYI, the example in bugzilla is wrong. The > > example says: > > server.appointment.setResources("25730", [ "25810", "25830"]); > > - but in fact you want to call it with the actual resource names, like: > > server.appointment.setResources("25730", [ "North Conference Room", > > "Video Projector 3"]); > > > > I'd *assumed* that the resource list stored objectIds like the write > > list field, but it appears to actually store resource names. > That's good to know. > Is there a possibility that the behaviour could be changed to > server.appointment.setResources("25730", [ "25810", "25830"]); Yes; a patch to do that is on my ToDo list. If contents is a number like - server.appointment.setResources("25730", [25810, 25830]); - assume it is a pkey/objectId, retrieve the corresponding appointmentResource(s) by id (appointmentresource::get-by-global-id / LSGetResourcesForGlobalIDs) store their names in the appointment. If contents s a string - server.appointment.setResources("25730", [ "North Conference Room"]); - then assume it is a resource name and store it directly, currently with no validation. I might be able to get that out today; but when/if it is accepted into Trunk is up to Helge. Going the other way - resource name to id - doesn't seem to have a specific command, which means I have to do a search. And I'm still a bit bewildered by the EOFetchSpec/extended-search thing. > Because I like it more to have object ids to deal with, than a > changeable plaintext argument. Yep. I've got the same issue. My code tosses around triples like "Document/{entityName}/{objectId}" as a way to abstractly refer to any OGo document/object. So I'm trying to clean up what I can within xmlrpcd. > I'm not that much into Objective-C, so it is not a quick job for me to > check the possiblities. Me neither! But I'm learning. :) From xmlrpc@opengroupware.org Wed Aug 16 18:02:29 2006 From: xmlrpc@opengroupware.org (Adam Tauno Williams) Date: Wed, 16 Aug 2006 13:02:29 -0400 Subject: [OGo-XML-RPC] Recent XML-RPC Updates Message-ID: <1155747749.4316.4.camel@aleph.whitemice.org> For anyone not in the habit of tracking the ChangeLog - http://www.opengroupware.org/changeblogger/ - this is just an FYI of numerous patches recently applied to trunk. * moved isPrivate handling from PersonDocument into CompanyDocument object to allow for isPrivate in company records (Bug#316) (v5.3.78) ---------------------------------------------------- Should allow you to set private flag on enterprise documents. Currently testing, there might still be a problem. * added generic.getTypeById method (Bug#1708) (v5.3.77) ---------------------------------------------------- Allows you to retrieve the document type corresponding to a pkey/objectId. This is useful especially when working with the obj_link related actions. #!/usr/bin/env python import xmlrpclib server = xmlrpclib.Server('http://awilliam:fred@localhost/RPC2') result = server.generic.getTypeById("10003") print result result = server.generic.getTypeById("10000") print result result = server.generic.getTypeById("43") print result Returns: Team Person Unknown * added access.getACLById method (Bug#1684) (v5.3.76) ---------------------------------------------------- Allows you to retrieve the ACLs applied to an object. And of the following are valid: print server.access.getACLById(10120) print server.access.getACLById("10120") print server.access.getACLById("27160,10120") print server.access.getACLById([ 27160 ]) print server.access.getACLById([ "27160", 10120 ]) #!/usr/bin/env python import xmlrpclib server = xmlrpclib.Server('http://awilliam:fred@localhost/RPC2') print server.access.getACLById([ "27160", 10120 ]) Returns: {'10120': [{'operations': 'wr', 'entityName': 'Team', 'objectId': 25850}, {'operations': 'wr', 'entityName': 'Person', 'objectId': 10120}, {'operations': 'wr', 'entityName': 'Team', 'objectId': 9981}, {'operations': 'w', 'entityName': 'Team', 'objectId': 25920}, {'operations': 'r', 'entityName': 'Team', 'objectId': 9991}], '27160': [{'operations': 'r', 'entityName': 'Team', 'objectId': 10003}, {'operations': 'wr', 'entityName': 'Team', 'objectId': 9991}]} NOTE: This is only tested for company objects (contacts & enteprises). It might work for documents [in projects], it certainly will not work for appointments. * added appointment.setPermissions method (Bug#219) (v5.3.75) ----------------------------------------- Allows you to change the permissions on appointment objects and adds the "writeAccess" and "accessTeamId" to the appointment document. "writeAccess" is an array of object id's with write access, and accessTeamId is the team selected for read access. #!/usr/bin/env python import xmlrpclib server = xmlrpclib.Server('http://awilliam:fred@localhost/RPC2') result = server.appointment.setPermissions('25730', '10003', [ '9991', '10003']); print "Method Result: %s" % result result = server.appointment.getById("25730") print "Write Access: %s" % result['writeAccess'] print "Read Access: %s" % result['accessTeamId'] print result = server.appointment.setPermissions('25730', '9991', '10003'); print "Method Result: %s" % result result = server.appointment.getById("25730") print "Write Access: %s" % result['writeAccess'] print "Read Access: %s" % result['accessTeamId'] Returns: awilliam@aleph:~/OGo/TestScripts/xmlrpcd> ./setPermOnApp.py Method Result: True Write Access: ['9991', '10003'] Read Access: 10003 Method Result: True Write Access: ['10003'] Read Access: 9991 Currently there is a small bug that you can only grant write access to teams, and not to accounts; it should be possible to mix write access for either. * removed duplicate encoding of 'comment' key (Bug#1598) (v5.3.74) * added appointment.setResources method (Bug#1599) (v5.3.73) ----------------------------------------------- Allows to associate resources to appointments (by name). For example: server.appointment.setResources(25730, "North Conference Room"); server.appointment.setResources(25730, [ "North Conference Room", "Video Projector #3" ]); server.appointment.setResources("25730", [ ]); However the "resourceNames" key is not yet encoded in the appointment document, so you can't see you changes [ except in the WebUI]. :) Patch forth-coming. From xmlrpc@opengroupware.org Thu Aug 17 06:16:25 2006 From: xmlrpc@opengroupware.org (Tobias Kaefer) Date: Thu, 17 Aug 2006 07:16:25 +0200 Subject: [OGo-XML-RPC] Resources and appointments In-Reply-To: <1155736806.4057.21.camel@aleph.whitemice.org> References: <44E153AB.7060906@abas.de> <0D904197-BE7D-4902-B37B-2FE6D90C6023@opengroupware.org> <44E1817A.1040100@abas.de> <1155634874.5234.3.camel@aleph.whitemice.org> <44E2BBA1.2090903@abas.de> <1155736806.4057.21.camel@aleph.whitemice.org> Message-ID: <44E3FBA9.1030102@abas.de> Adam Tauno Williams schrieb: > Yes; a patch to do that is on my ToDo list. > That's good to hear. Yesterday I did a little investigation in the sourcecode, but I'll have to say, that I'm more familiar with Java ;) But one thing I figured out is, that the current release in trunk misses one entry. As you (Adam) mentioned in the Bugzilla post, not only your patch has to be applied, but also "[_coder encodeString:[self resourceNames] forKey:@"resourceNames"]; to the encodeWithXmlRpcCoder method in SkyAppointmentDocument+XmlRpcCoding.m" And that one is missing. > I might be able to get that out today; but when/if it is accepted into > Trunk is up to Helge. > It does not hurry that much - from my point of view - as I can deliver the functionality after I have finished my thesis (5 weeks remaining for me). > Yep. I've got the same issue. My code tosses around triples like > "Document/{entityName}/{objectId}" as a way to abstractly refer to any > OGo document/object. So I'm trying to clean up what I can within > xmlrpcd. > I'll cross fingers that you'll get it done! >> I'm not that much into Objective-C, so it is not a quick job for me to >> check the possiblities. >> > Me neither! But I'm learning. :) > If I had a little more time right now....... Greets Tobi From xmlrpc@opengroupware.org Thu Aug 17 10:22:16 2006 From: xmlrpc@opengroupware.org (Helge Hess) Date: Thu, 17 Aug 2006 11:22:16 +0200 Subject: [OGo-XML-RPC] Resources and appointments In-Reply-To: <44E3FBA9.1030102@abas.de> References: <44E153AB.7060906@abas.de> <0D904197-BE7D-4902-B37B-2FE6D90C6023@opengroupware.org> <44E1817A.1040100@abas.de> <1155634874.5234.3.camel@aleph.whitemice.org> <44E2BBA1.2090903@abas.de> <1155736806.4057.21.camel@aleph.whitemice.org> <44E3FBA9.1030102@abas.de> Message-ID: <7247A25B-88A9-4091-9392-E546B01888D8@opengroupware.org> On Aug 17, 2006, at 07:16, Tobias Kaefer wrote: > "[_coder encodeString:[self resourceNames] forKey:@"resourceNames"]; > > to the encodeWithXmlRpcCoder method in SkyAppointmentDocument > +XmlRpcCoding.m" I've added something like this in trunk. It exposes the names as arrays though. Greets, Helge -- Helge Hess http://docs.opengroupware.org/Members/helge/ From xmlrpc@opengroupware.org Thu Aug 17 11:42:15 2006 From: xmlrpc@opengroupware.org (Adam Tauno Williams) Date: Thu, 17 Aug 2006 06:42:15 -0400 Subject: [OGo-XML-RPC] Resources and appointments In-Reply-To: <7247A25B-88A9-4091-9392-E546B01888D8@opengroupware.org> References: <44E153AB.7060906@abas.de> <0D904197-BE7D-4902-B37B-2FE6D90C6023@opengroupware.org> <44E1817A.1040100@abas.de> <1155634874.5234.3.camel@aleph.whitemice.org> <44E2BBA1.2090903@abas.de> <1155736806.4057.21.camel@aleph.whitemice.org> <44E3FBA9.1030102@abas.de> <7247A25B-88A9-4091-9392-E546B01888D8@opengroupware.org> Message-ID: <1155811335.9029.13.camel@aleph.whitemice.org> On Thu, 2006-08-17 at 11:22 +0200, Helge Hess wrote: > On Aug 17, 2006, at 07:16, Tobias Kaefer wrote: > > "[_coder encodeString:[self resourceNames] forKey:@"resourceNames"]; > > > > to the encodeWithXmlRpcCoder method in SkyAppointmentDocument > > +XmlRpcCoding.m" > > I've added something like this in trunk. It exposes the names as > arrays though. Cool. Note that there is already a "resource.getByName" action, so the client should be able to work with the list-of-names. awilliam@aleph:~/OGo/TestScripts/xmlrpcd> cat getResourceByName.py #!/usr/bin/env python import xmlrpclib,time,pprint server = xmlrpclib.Server('http://awilliam:fred@localhost/RPC2') result = server.resource.getByName("North Conference Room") print result awilliam@aleph:~/OGo/TestScripts/xmlrpcd> ./getResourceByName.py [{'category': 'Conference Room', 'name': 'North Conference Room', 'objectVersion': 1, 'email': 'awilliam@whitemice.org', 'notificationTime': 720, 'emailSubject': 'North Conference Room', 'id': 'skyrix://aleph.whitemice.org/aleph/25830'}] From xmlrpc@opengroupware.org Thu Aug 31 16:04:08 2006 From: xmlrpc@opengroupware.org (=?ISO-8859-1?Q?Fabi_Avil=E9s?=) Date: Thu, 31 Aug 2006 17:04:08 +0200 Subject: [OGo-XML-RPC] Problems deleting and creating accounts Message-ID: <919866d50608310804g183a5632se7dca11fec4e9c0e@mail.gmail.com> ------=_Part_49463_18726771.1157036648566 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi pepole. I create accounts with data from a LDAP. When I remove an OpenGroupware's account, I can create it again, using the same data in LDAP, it means that the new account will have the same login. My problem is that, when I create the account for the second time, I need to restart OpenGroupware, because otherway xmlrpc's methods don't use the correct account id. Can anyone help me? Thanks ------=_Part_49463_18726771.1157036648566 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi pepole. I create accounts with data from a LDAP. When I remove an OpenGroupware's account, I can create it again, using the same data in LDAP, it means that the new account will have the same login. My problem is that, when I create the account for the second time, I need to restart OpenGroupware, because otherway xmlrpc's methods don't use the correct account id. Can anyone help me?

Thanks
------=_Part_49463_18726771.1157036648566--