Alan Lord | 28 Jan 09:18 2016
Picon
Gravatar

Re: Standalone Lightning for webapps?

On 27/01/16 15:13, CC wrote:
> On Wednesday, January 27, 2016 at 2:32:33 PM UTC, Alan Lord wrote:
>
>> How about using something like:
>>
>> http://fullcalendar.io/
>
> I think - I may be wrong - that it only displays a public Google calendar.

Yes you are. It will display whatever calendar data you want if you 
write the right code. It's "simply" code to display calendar data in a 
nice way using familiar libraries like jQuery.

HTH

Al
Philipp Kewisch | 27 Jan 19:39 2016
Picon
Gravatar

Re: Standalone Lightning for webapps?

On 1/27/16 4:13 PM, CC wrote:
> On Wednesday, January 27, 2016 at 2:32:33 PM UTC, Alan Lord wrote:
> 
>> How about using something like:
>>
>> http://fullcalendar.io/
> 
> I think - I may be wrong - that it only displays a public Google calendar. Public calendars appear in search
results and can be viewed by anybody. The calendar itself is stored at Google. If you want to change the
calendar, you have to log on at Google with a Google account. It looks nice, but has a very limited use case. I
could do pretty much the same trivially by displaying the source calendar in an iframe, and Google gives
you a link to do exactly that.
> 
> I've looked at a lot of other options, but they all have similar limitations. Basically, the JS/jQuery
ones are, I think, all display-only, so you have to handle talking to the calendar server yourself in your
server code.
> 
> The advantage of using the Lightning code would be that it handles both the front- and back-end: it talks to
the calendar server, *and* it creates JS for output. I think. This lets you create private calendars which
can be both read and written by a group of users.
> 

The Lightning code is pretty much geared towards working in a client
side application. If you are implementing this from scratch I'd rather
suggest using various other libraries. You should defintiely do 1,  then
you have the choice of either doing 2, 3 or 4.

1) Fullcalendar
This is really the best solution for calendar display in the browser.
Use a custom backend that hooks up to the remote server and maybe does
(Continue reading)

Stefan Sitter | 27 Jan 19:31 2016
Picon

Re: Standalone Lightning for webapps?

On 27.01.2016 14:40, CC wrote:
> Just a sanity check before I spend too much time on this.
>
> I need to write some standalone code on a (Linux) web server that
> serves calendar data to browsers via Ajax. It should return either
> HTML or Javascript to the browser, so that the browser can display a
> month view (just like a Lightning month view).
>
> This code will probably need to get ics data from a shared calendar
> server (probably Calendar (calendarserver.org) on the same box)
> before returning it to the browser, but a simpler back-end
> (SQLite/whatever) would probably be Ok.

The open source SOGo groupware server implements a web calendar 
interface that looks like Lightning: 
http://www.sogo.nu/tour/screenshots.html

> How difficult would it be to re-use the Lightning source code to do
> this? So, basically, I want to chop out the Thunderbird integration
> and the GUI and replace it with Ajax/HTML/Javascript. I can write
> C++/Javascript/etc, so the hacking is Ok, but I'd just like to
> confirm that the Lighning is structured in such a way that this is
> possible and there's something useful left after I've removed the
> Thunderbird bits. Or has anyone already done this?

Ok, so you are looking for a library to parse ics data? Currently 
Lightning uses the libical library written in C for this task. A 
replacement written in JavaScript is in development and available for 
testing in Lightning trunk nightly builds.

(Continue reading)

Alan Lord | 27 Jan 15:32 2016
Picon
Gravatar

Re: Standalone Lightning for webapps?

On 27/01/16 13:40, CC wrote:
> Just a sanity check before I spend too much time on this.
>
> I need to write some standalone code on a (Linux) web server that serves calendar data to browsers via Ajax.
It should return either HTML or Javascript to the browser, so that the browser can display a month view
(just like a Lightning month view).

How about using something like:

http://fullcalendar.io/

Why re-invent the wheel?

HTH

Al
STF | 11 Jan 12:10 2016
Picon

Ctrl+Z should have no effect in "Description" on newly open event dialog

I was editing an old event and found that pressing Ctrl+Z continuously 
could erase everything in the "Description" area.

IMO, when an old event dialog is open, Ctrl+Z should have NO effect.

Also notice that, on a newly open old event, Ctrl+Z is greyed out in 
"Edit" menu, but Ctrl+Z still has effect.

Should I file a bug?

Thanks :)
Stefan Sitter | 6 Jan 17:37 2016
Picon

Re: Only Load Future Events

On 06.01.2016 17:19, kfr- wrote:
> Our Thunderbird users with lots of calendar events are reporting
> slowness. Slowness seems to go away when we disable addons(lighting)
>
> icaljs is turned on.

icaljs library is still in experimental stage and has known bugs and
performance problems. Reverting to default libical library could improve
performance.

> Is there a setting/pref that tells TB+Lightining only load future
> events instead of all events?

It depends on your calendar provider in use. For example when using ics
provider the whole file has to be loaded and parsed before display.
Enabling the offline cache might help here. Other providers like CalDAV
provider might only request data for specific date range. There is no
special setting except setting all filters from open ended date range to
closed date range. For example set event search bar (unifinder) or task
list filter from all events/tasks to next 7 days.

/Stefan
ISHIKAWA, Chiaki | 25 Nov 16:58 2015
Picon

Calendar-related errors during |make mozmill| test of C-C TB on tryserver.

I am testing my patches for fixing some File I/O issues.

I noticed I experienced errors in OS X build and Windows build during
|make mozmill| tests.
These errors are not observed in my local testing under linux and also
on linux build on tryserver.

I am focusing on Calendar-related issues in my post here.
There are two errors I noticed:

My tryserver log:
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=c8c1373a5ae6&selectedJob=12322

(1) testLocalCS.js

In a mozmill test called testLocalCS.js,
I am getting the following error on Windows and OS X platforms while
linux shows no such error.

NS_ERROR_XPC_GS_RETURNED_FAILURE

I wonder why.

(2) testTodayPane.js

This file also produced error result.

According to the log, in the early phase, I saw the following lines.
It looks as if the backend interface is not registered or recognized.

(Continue reading)

Ck | 21 Sep 11:38 2015
Picon
Picon

recurring events disappear on restart

Hi,

I am using lightning 4.5a1 and recurring events always disappear after a
restart of thunderbird. I have to reset cache, then they will show up
again.

Does anybody know if there is a work-around, or an existing bug?

Christoph
MIchael Opitz | 15 Jul 07:02 2015
Picon
Picon

Multiple calendars from one URL with different passwords?

Is it somehow possible to add multiple calendars from the same Host with 
different passwords?

I have different users with different passwords at my mailhost and want 
to import the calendars of each user. But the password manager saves the 
password only for the first user and all other calendars are not accessible.
WaltS48 | 28 Jun 15:48 2015

Wrong repeating event date in Lightning 4.3a1

In one of my calendars on the computer, I noticed a previous repeating 
All day event I had scheduled, was showing on the 1st of every month, 
instead of the correct date of the 26th of the month.

I deleted all events, recreated it for the 26th of July, set Repeat for 
Monthly, with the event to end on Nov. 25, 2015, saved and closed.

The first event shows up for the 26th of July, and the repeating events 
on the first of every month until Dec. 1st.

Same behavior with a new test calendar and test event on my computer.

--

-- 
Kubuntu 14.10 | KDE 4.14.1 | Thunderbird 41.0a1(Daily) Go Bucs!
[Coexist ยท Understanding Across Divides](https://www.coexist.org/)
[Visit Pittsburgh](http://www.visitpittsburgh.com)
[2015 EQT Pittsburgh Three Rivers Regatta](http://www.yougottaregatta.com/)
_______________________________________________
dev-apps-calendar mailing list
dev-apps-calendar <at> lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-apps-calendar
Stefan Sitter | 15 Jun 19:59 2015
Picon

Re: Strange and frequent error (An error occurred when writing to the calendar <cal name>!)

On 15.06.2015 19:40, STF wrote:
> Since I've reinstalled everything (Win7) in my home computer, I'm
> getting a strange error from TB+Calendar from time to time.
>
> When that happens, I'd get a dialog on the screen saying
>
> An error occurred when writing to the calendar <cal name>!
>
> And there are two buttons: Details and OK
>
> The attached image shows what I get when I press "Details" (note that
> my calendar name is "Me")
>
> I have no idea why I get this error from time to time. The problem
> is that when I press "OK", most of the time, TB+Calendar would just
> stop responding! And I have to kill the process from Task Manager and
> rerun TB again.
>
> Anyone has seen this? What have I done wrong? I can't think of any.
> Or maybe because I'm using WiFi -- but I had been using WiFi before
> and I didn't get this problem.
>
> It's very weird!
> Any idea?

HTTP status code 403 means 'Forbidden', i.e. Lightning tries to perform 
an action that is not allowed by the server. The following might help to 
further investigate your problem:

- the version of Thunderbird and Lightning you are using
(Continue reading)


Gmane