Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-17-2007, 08:31 AM
Special Member
 
Posts: 151
Default Calendar Item that is Read Only

I'm working to integrate Zimbra with our custom application. Currently the custom application manages appointments.

I can very easily send those appointments over to zimbra, then I can update them, or delete them as needed.

However, if the user logs into zimbra, and deletes or updates the calendar item there, it is not recorded back into our custom application.

What possible solutions are there to this problem?

1) Set the calendar item in read only in Zimbra somehow? Is this possible? If so how? (Sorry I don't know the ICS or calendar format enough to know really)

2) Kick off some script call back to our custom app when a calendar entry with certain tags is modified, or deleted, is this possible?

3) Run a cron job in our custom app to check the calendar entries in zimbra, and reset them, if they've been modified. (not the best way at all.)

Any others?

I appreciate any insight.

Thanks.

-B
Reply With Quote
  #2 (permalink)  
Old 02-17-2007, 11:46 PM
Former Zimbran
 
Posts: 5,606
Default

Quote:
Originally Posted by phingers View Post
However, if the user logs into zimbra, and deletes or updates the calendar item there, it is not recorded back into our custom application.
How often does your app pull the ics file?
Reply With Quote
  #3 (permalink)  
Old 02-18-2007, 08:02 AM
Special Member
 
Posts: 151
Default It doesnt pull anything yet.

It doesnt pull anything yet, I havent implemented this, I'm just trying to figure out how to do this. I guess it should pull this file every 15 to 60 mins.
Reply With Quote
  #4 (permalink)  
Old 02-18-2007, 08:28 PM
Former Zimbran
 
Posts: 5,606
Default

That's exactly what you're gonna need to do.
We plan on implementing CalDAV in the future, but until then, you'll need to set your app to pull the cal on a regular basis.

-john
Reply With Quote
  #5 (permalink)  
Old 02-18-2007, 08:49 PM
Special Member
 
Posts: 151
Default

So do we know when CalDAV will be implemented? Any dates?

Thanks.

-B
Reply With Quote
  #6 (permalink)  
Old 02-18-2007, 08:52 PM
Former Zimbran
 
Posts: 5,606
Default

Quote:
Originally Posted by phingers View Post
So do we know when CalDAV will be implemented? Any dates?
See this bug:
http://bugzilla.zimbra.com/show_bug.cgi?id=6052

The target is for GnR which is after 5.0

It's gonna require some major server-side changes.

john
Reply With Quote
  #7 (permalink)  
Old 02-18-2007, 09:45 PM
Special Member
 
Posts: 151
Default

Thanks for the heads up, I'll vote, and keep my eye on that ticket. That certaintly will make integrating another app with Zimbra much easier.

So at this point, I've got my application using the Zimbra username/password to authenticate users, and a link in the app, using pre-auth to direct them to the calendar directly.

I have new calendar entries in ICS format from my application being CURL'd into the zimbra calendar. I've noticed if I send the ICS file multiple times, that it only gets added to the zimbra calendar once, so it must recognize it as a duplicate, and only add it once, which is great!

So I have two scenario's left to program.

1) When a user updates a date/time in my application, how do I update the zimbra calendar?

2) When a user deletes a date/time in my application, how do I delete that calendar entry?

I wish that CURL's response would send back more than just a 1 for sucess when its being set, and contained a calendar ID or some easy way to record what do update or delete.

So in order to update or delete, I must search the calendar, find it, and then delete it, and re-add for updates?

Any one else attempting this scenario, or know the best way to approach this problem?

Thanks!

-Bryan
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.