CLI Functions

General stuff of the Tine 2.0 effort

CLI Functions

Postby samlar » Thu Jul 26, 2012 1:44 pm

Hi all.
Using the CLI function to import ics files. Taken from the mail program horde, but I can not get it to work completely.
I run the command:
Code: Select all
php tine20.php --method=Calendar.import --username=me -v plugin=Calendar_Import_Ical importContainerId=362 /path/to/Feiertage_DE.ics


The calendar events in table tine20_cal_events fills but it fails to fill the tine20_cal_attendee.
Causing the event is not visible in the tine calendar.
What am I doing wrong?

I hope someone can answer my question.
Thanks :)
samlar
 
Posts: 5
Joined: Thu Jul 26, 2012 1:14 pm

Re: CLI Functions

Postby samual » Fri Jul 27, 2012 1:11 pm

Replacing me with your username?
samual
 
Posts: 104
Joined: Fri Jun 15, 2012 11:48 pm

Re: CLI Functions

Postby samlar » Fri Jul 27, 2012 1:39 pm

samual wrote:Replacing me with your username?


I know, I just copy/paste for exemple.

The function works fine but it fails to fill in the table tine20_cal_attendee.
samlar
 
Posts: 5
Joined: Thu Jul 26, 2012 1:14 pm

Re: CLI Functions

Postby ph_il » Mon Jul 30, 2012 10:56 am

could you please show us one of the events from the ics file? perhaps the attender is not understood by tine. or maybe you see an error in the tine logfile.
Philipp Schüle
Tine 2.0 Core Developer

Visit http://www.tine20.com (commercial support, consulting and development)
Visit http://www.officespot20.com (Tine 2.0 hosting)
User avatar
ph_il
Tine 2.0 Core Developer
 
Posts: 3450
Joined: Fri Mar 07, 2008 11:41 am

Re: CLI Functions

Postby samlar » Mon Jul 30, 2012 12:31 pm

ph_il wrote:could you please show us one of the events from the ics file? perhaps the attender is not understood by tine. or maybe you see an error in the tine logfile.


Here you go:

Code: Select all
BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:Kalender för samlar
PRODID:-//The Horde Project//Horde_iCalendar Library\, Horde 3.3.4//EN
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART:20120126T080000Z
DTEND:20120126T093000Z
DTSTAMP:20120730T103300Z
UID: 2012054623434.35xokoaskdo@samlar.samlar
CREATED:20120109T145017Z
LAST-MODIFIED:20120126T105022Z
SUMMARY:test
ORGANIZER;CN=samlar:mailto:samlar@samlar.samlar
CATEGORIES:Im Out
CLASS:PUBLIC
STATUS:CONFIRMED
TRANSP:OPAQUE
ENCODEPHONE:N
END:VEVENT
END:VCALENDAR
samlar
 
Posts: 5
Joined: Thu Jul 26, 2012 1:14 pm

Re: CLI Functions

Postby ph_il » Wed Aug 01, 2012 12:29 pm

ah, you need to know 2 things:

- organizer != attender: there is no attender data in your ics and no attendee are created in tine
- attendee filter is set by default but you can disable it and should see the imported events afterwards
Philipp Schüle
Tine 2.0 Core Developer

Visit http://www.tine20.com (commercial support, consulting and development)
Visit http://www.officespot20.com (Tine 2.0 hosting)
User avatar
ph_il
Tine 2.0 Core Developer
 
Posts: 3450
Joined: Fri Mar 07, 2008 11:41 am

Re: CLI Functions

Postby samlar » Thu Aug 09, 2012 3:20 pm

ph_il wrote:ah, you need to know 2 things:

- organizer != attender: there is no attender data in your ics and no attendee are created in tine
- attendee filter is set by default but you can disable it and should see the imported events afterwards


You say that there is no attender data in my ics file.

Have tried to use ics example from bug tracker but still not working.
What do you mean by there is no attender data in my ics, do you have a ics that works for me with attendant data as you say?

Thanks for your help ph_il.
samlar
 
Posts: 5
Joined: Thu Jul 26, 2012 1:14 pm

Re: CLI Functions

Postby ph_il » Mon Aug 13, 2012 12:06 pm

did you disable the attender filter in the calendar view? please check if your imported events appear ...
Philipp Schüle
Tine 2.0 Core Developer

Visit http://www.tine20.com (commercial support, consulting and development)
Visit http://www.officespot20.com (Tine 2.0 hosting)
User avatar
ph_il
Tine 2.0 Core Developer
 
Posts: 3450
Joined: Fri Mar 07, 2008 11:41 am

Re: CLI Functions

Postby samlar » Tue Sep 11, 2012 2:04 pm

ph_il wrote:did you disable the attender filter in the calendar view? please check if your imported events appear ...


It do, disable attender manually, but how do I remove it permanently?

Then I have another question regarding CalDAV which I understand will work to sync event from calendar. Sadly, something wrong, the link just shows a blank page.
Is there anything I need to do or have I missed something in the setup?

Im trying to sync to horde webmail.

The CalDAV link looks like this:
https://url/calendars/b22d0aadc1b217dc1 ... a6fc604/54
samlar
 
Posts: 5
Joined: Thu Jul 26, 2012 1:14 pm

Re: CLI Functions

Postby ph_il » Fri Sep 14, 2012 9:35 pm

samlar wrote:It do, disable attender manually, but how do I remove it permanently?


you could save a favorite (persistent filter) for this.

samlar wrote:Is there anything I need to do or have I missed something in the setup?


you have to define rewrite rules for your webserver to make this work. did you read http://www.tine20.org/wiki/index.php/Ad ... ronisation ?
Philipp Schüle
Tine 2.0 Core Developer

Visit http://www.tine20.com (commercial support, consulting and development)
Visit http://www.officespot20.com (Tine 2.0 hosting)
User avatar
ph_il
Tine 2.0 Core Developer
 
Posts: 3450
Joined: Fri Mar 07, 2008 11:41 am


Return to General [English]

Who is online

Users browsing this forum: Exabot [Bot] and 2 guests

Startseite
NewsDemoDownloadForumWikiBlog
Support
Support at first hand!
If the forum does not help anymore ... Professional support is available directly from our Tine2.0 core Developers.

more »