Re: [SOGo] Saving name of user that created/modified event? Python hook?
Hi Robert On 2012-03-14, at 5:13 AM, Robert Casties wrote: > Would it be possible with a Python hook? What do I need to play with > this? 2.0? Yes, the Python bindings will be available in 2.0. Francis -- flachape...@inverse.ca :: +1.514.755.3640 :: http://www.inverse.ca Inverse :: Leaders behind SOGo (http://sogo.nu) and PacketFence (http://packetfence.org) -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Saving name of user that created/modified event? Python hook?
On 14.03.12 17:07, Alessio Fattorini wrote: > Il 14/03/2012 15:12, Robert Casties ha scritto: > >> I would still prefer "normal" calendars with the added option of knowing >> who did what in our case but if that's not feasible we would look at >> resources. > > I think that's impossible: > http://www.sogo.nu/bugs/view.php?id=640 I know that its not part of the vcalendar spec. Thats why I wanted to run a little script on event creation or modification that would add some text to the notes field. Best Robert -- Dr. Robert Casties -- Information Technology Group Max Planck Institute for the History of Science Boltzmannstr. 22, D-14195 Berlin Tel: +49/30/22667-342 Fax: -340 -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Saving name of user that created/modified event? Python hook?
Il 14/03/2012 15:12, Robert Casties ha scritto: I would still prefer "normal" calendars with the added option of knowing who did what in our case but if that's not feasible we would look at resources. I think that's impossible: http://www.sogo.nu/bugs/view.php?id=640 -- Alessio Fattorini (alessio.fattor...@nethesis.it) nethesis srl - Via degli Olmi 16/4 - 61100 Pesaro (PU) tel. +39 0721 405516 - fax +39 0721 268147 www.nethesis.it - i...@nethesis.it -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Saving name of user that created/modified event? Python hook?
On 14.03.12 15:00, Christian Mack wrote: > Resources are like normal accounts. > They accept events automatically when invited. > You can specify for each resource how many simultaneous events are allowed. > > For example we use resources for scheduling meeting rooms. They only > allow one simultaneous event. > In order to book resources you have to invite them in your event like > other users. > If the room is free, it will auto accept your event. > If not, SOGo will refuse to save your event. Then you have to either use > another room or change the date or time of your event. > > We have shared this room calendars "View All", so everybody from our > department can see which events are scheduled in them. > By double clicking on these events you can see who booked this room for > the particular event in the owner field and who is invited. Thanks, that is helpful. I didn't understand resources so far. I would still prefer "normal" calendars with the added option of knowing who did what in our case but if that's not feasible we would look at resources. Best Robert -- Dr. Robert Casties -- Information Technology Group Max Planck Institute for the History of Science Boltzmannstr. 22, D-14195 Berlin Tel: +49/30/22667-342 Fax: -340 -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Saving name of user that created/modified event? Python hook?
Nella citazione in data mer 14 mar 2012 15:00:28 CET, Christian Mack ha scritto: Hope that clarifies it a bit. Great answer! Thank you very much! It's very clear now. We'll implement it very soon! -- -- Alessio Fattorini (alessio.fattor...@nethesis.it) nethesis srl - Via degli Olmi 16/4 - 61100 Pesaro (PU) tel. +39 0721 405516 - fax +39 0721 268147 www.nethesis.it - i...@nethesis.it -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Saving name of user that created/modified event? Python hook?
On 14.03.12 10:49, Peter Peltonen wrote: >> Now I had the idea to automatically add a line like "created by $user at >> $date" to the notes field. How would that be possible? >> >> Would it be possible with a Python hook? What do I need to play with >> this? 2.0? > > No idea what it would need from SOGo, but if you are using a database > backend and not LDAP, you could perhaps implement this with database > triggers: on update of certain field you update some other field in > the db? Our authentication is via LDAP but all Sogo data is in postgres so I guess it would be theoretically feasible but it seems rather complicated. In that case I would rather write Obective C to extend Sogo... but I would prefer a simple programmable hook. Thanks Robert -- Dr. Robert Casties -- Information Technology Group Max Planck Institute for the History of Science Boltzmannstr. 22, D-14195 Berlin Tel: +49/30/22667-342 Fax: -340 -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Saving name of user that created/modified event? Python hook?
On 2012-03-14 14:43, Alessio Fattorini wrote: > Il 14/03/2012 11:33, Christian Mack ha scritto: >> Why don't you use Resources for these "group calendars". >> People now can invite these and get automatically accepted. >> This has the advantage that the owner is always the person which created >> this event. > > Sory but i don't know resources very much. Can you explain it better? > > Resources are like normal accounts. They accept events automatically when invited. You can specify for each resource how many simultaneous events are allowed. For example we use resources for scheduling meeting rooms. They only allow one simultaneous event. In order to book resources you have to invite them in your event like other users. If the room is free, it will auto accept your event. If not, SOGo will refuse to save your event. Then you have to either use another room or change the date or time of your event. We have shared this room calendars "View All", so everybody from our department can see which events are scheduled in them. By double clicking on these events you can see who booked this room for the particular event in the owner field and who is invited. Hope that clarifies it a bit. Kind regards, Christian Mack -- Christian Mack Gruppe Informationsdienste Rechenzentrum Universität Konstanz -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Saving name of user that created/modified event? Python hook?
Il 14/03/2012 11:33, Christian Mack ha scritto: Why don't you use Resources for these "group calendars". People now can invite these and get automatically accepted. This has the advantage that the owner is always the person which created this event. Sory but i don't know resources very much. Can you explain it better? -- Alessio Fattorini (alessio.fattor...@nethesis.it) nethesis srl - Via degli Olmi 16/4 - 61100 Pesaro (PU) tel. +39 0721 405516 - fax +39 0721 268147 www.nethesis.it - i...@nethesis.it -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Saving name of user that created/modified event? Python hook?
On 2012-03-14 10:13, Robert Casties wrote: > Since we use a lot of group calendars where events are created and > changed by different users it would be nice to know which user created > or changed an event (and when). > > It seems that the vcalendar format does not provide this information, at > least I didn't find it. > > Now I had the idea to automatically add a line like "created by $user at > $date" to the notes field. How would that be possible? > > Would it be possible with a Python hook? What do I need to play with > this? 2.0? > Why don't you use Resources for these "group calendars". People now can invite these and get automatically accepted. This has the advantage that the owner is always the person which created this event. Kind regards, Christian Mack -- Christian Mack Gruppe Informationsdienste Rechenzentrum Universität Konstanz -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Saving name of user that created/modified event? Python hook?
Hi, On Wed, Mar 14, 2012 at 11:13 AM, Robert Casties wrote: > Since we use a lot of group calendars where events are created and > changed by different users it would be nice to know which user created > or changed an event (and when). > > It seems that the vcalendar format does not provide this information, at > least I didn't find it. > > Now I had the idea to automatically add a line like "created by $user at > $date" to the notes field. How would that be possible? > > Would it be possible with a Python hook? What do I need to play with > this? 2.0? No idea what it would need from SOGo, but if you are using a database backend and not LDAP, you could perhaps implement this with database triggers: on update of certain field you update some other field in the db? Best, Peter -- users@sogo.nu https://inverse.ca/sogo/lists
[SOGo] Saving name of user that created/modified event? Python hook?
Since we use a lot of group calendars where events are created and changed by different users it would be nice to know which user created or changed an event (and when). It seems that the vcalendar format does not provide this information, at least I didn't find it. Now I had the idea to automatically add a line like "created by $user at $date" to the notes field. How would that be possible? Would it be possible with a Python hook? What do I need to play with this? 2.0? Thanks Robert -- Dr. Robert Casties -- Information Technology Group Max Planck Institute for the History of Science Boltzmannstr. 22, D-14195 Berlin Tel: +49/30/22667-342 Fax: -340 -- users@sogo.nu https://inverse.ca/sogo/lists