RTx::Calendar 0.04

Hello,

I’ve just upload RTx::Calendar 0.04 on CPAN :

Changes for 0.04

  • should work with rt 3.6.0 and seems to work with 3.7.2
  • display Starts date by default
  • you can use Format to display dates you want (Created, Started,
    Due, Starts, …)
  • if a saved search is named “calendar”, use it for the default
    Calendar.html and for the portlet
  • fix a bug in Prefs

I’ve installed it via CPAN to my development environment and restarted apache.
I’ve re-logged into the UI but can’t find it anywhere. I’m using 3.6.3 with the
3.4-compat CSS. Where should I be seeing this?

Mathew
Keep up with me and what I’m up to: http://theillien.blogspot.com

Nicolas Chuche wrote:

Nicolas Chuche wrote:

I added it to RT_SiteConfig.pm but

  1. I still don’t see it on the Query Builder page and

Is there a Calendar page in the Preferences item ?

No, no Calendar page under Preferences. However, if I type Calendar.html into
the address bar I can get to it.

  1. After adding it via RT at a glance prefs I get an error:
    System error
    error: Can’t locate object method “from_recurrence” via package

Have you installed the module DateTime::Set ?

Yes, it is up to date at v0.25

Nicolas Chuche wrote:

I added it to RT_SiteConfig.pm but

  1. I still don’t see it on the Query Builder page and

Is there a Calendar page in the Preferences item ?

I was able to get this in place after I reset my umask to 022 and reinstalled
the extension from source instead of CPAN

  1. After adding it via RT at a glance prefs I get an error:
    System error
    error: Can’t locate object method “from_recurrence” via package

Have you installed the module DateTime::Set ?

I’m still not able to see the calendar though, on the RT at a glance page. It
still shows the error. I also reinstalled DateTime::Set from source instead of
via CPAN but it hasn’t helped

Mathew

I was able to get this in place after I reset my umask to 022 and reinstalled
the extension from source instead of CPAN

weird !

I’m still not able to see the calendar though, on the RT at a glance page. It
still shows the error. I also reinstalled DateTime::Set from source instead of
via CPAN but it hasn’t helped

Could you try two things :

% perl -MDateTime::Set -le ‘print $DateTime::Set::VERSION’
0.25

and

% perl -MDateTime::Set -le ‘my $rec = DateTime::Set->from_recurrence();’
Not enough arguments in from_recurrence() at
/usr/local/share/perl/5.8.8/DateTime/Set.pm line 207.

Nicolas Chuche wrote:

I was able to get this in place after I reset my umask to 022 and
reinstalled
the extension from source instead of CPAN

weird !

I’m still not able to see the calendar though, on the RT at a glance
page. It
still shows the error. I also reinstalled DateTime::Set from source
instead of
via CPAN but it hasn’t helped

Could you try two things :

% perl -MDateTime::Set -le ‘print $DateTime::Set::VERSION’
0.25

and

% perl -MDateTime::Set -le ‘my $rec = DateTime::Set->from_recurrence();’
Not enough arguments in from_recurrence() at
/usr/local/share/perl/5.8.8/DateTime/Set.pm line 207.

[msnyder@rt-devel ~]# sudo perl -MDateTime::Set -le ‘print $DateTime::Set::VERSION’
0.25
[msnyder@rt-devel ~]# sudo perl -MDateTime::Set -le ‘my $rec =
DateTime::Set->from_recurrence();’
Not enough arguments in from_recurrence() at
/usr/lib/perl5/site_perl/5.8.8/DateTime/Set.pm line 207.

Mathew

Nicolas Chuche wrote:

/usr/local/rt-3.6.3/share/html/Elements/MyCalendar line 54.^J’) called at

This line seems strange. Could you search for weird character (like
^J) in MyCalendar file ?

use this to loop over days until $end

my $set = DateTime::Set->from_recurrence(
next => sub { $_[0]->truncate( to => ‘day’ )->add( days => 1 ) }
); <----Line 54

Mathew

/usr/local/rt-3.6.3/share/html/Elements/MyCalendar line 54.^J’) called at

This line seems strange. Could you search for weird character (like
^J) in MyCalendar file ?

I’ve just upload RTx::Calendar 0.04 on CPAN :

RTx-Calendar-0.04 - Calendar view - metacpan.org

Changes for 0.04

  • should work with rt 3.6.0 and seems to work with 3.7.2
  • display Starts date by default
  • you can use Format to display dates you want (Created, Started,
    Due, Starts, …)
  • if a saved search is named “calendar”, use it for the default
    Calendar.html and for the portlet
  • fix a bug in Prefs

Looks good (on 3.6.3), but I am having trouble customizing it (I just
turned it off two days ago, and went back to the reminder box instead),
and so was hoping the new one can do what I am looking for.

What I want to be able to do is show all reminders, even if they are in
the past - ie. if I didn’t actually get something done by the day it was
due, I want it to still show - is that possible, or do I need to use the
reminder box to do that?

I don’t understand how it can find from_recurrence function in
Calendar.html and Calendar.pm and not in MyCalendar.

What I want to be able to do is show all reminders, even if they are in
the past - ie. if I didn’t actually get something done by the day it was
due, I want it to still show - is that possible, or do I need to use the
reminder box to do that?

With the default configuration it should display all events in the
period of times (so week for the portlet and month for the calendar)
if they are in state new, open or stalled.

What I want to be able to do is show all reminders, even if they are in
the past - ie. if I didn’t actually get something done by the day it was
due, I want it to still show - is that possible, or do I need to use the
reminder box to do that?

With the default configuration it should display all events in the
period of times (so week for the portlet and month for the calendar)
if they are in state new, open or stalled.

Yes, it does, what would be nifty is to also show past/old 

reminders that weren’t completed, in the case where I didn’t get around to
doing them, instead of just disappearing, still being there. Maybe I need
to write a search for old reminders, and put that on my at-a-glance page,
and then I won’t have duplicates between the calendar and the “regular”
reminder portlet.

    Yes, it does, what would be nifty is to also show past/old

reminders that weren’t completed,n the case where I didn’t get around to
doing them, instead of just disappearing, still being there. Maybe I need
to write a search for old reminders, and put that on my at-a-glance page,
and then I won’t have duplicates between the calendar and the “regular”
reminder portlet.

I’m not sure I understand your need. You want that the portlet show a
reminder set 2 weeks ago in itself ? That’s the calendar job : click
on the portlet title. You can see all reminders/task for every single
month if you need.

I’m guessing there is a problem with my RT installation likely due to
not changing the umask prior to installing this. I’m going to rebuild
it tomorrow and see what happens.

Mathew

Nicolas Chuche wrote:

I’m guessing there is a problem with my RT installation likely due to
not changing the umask prior to installing this. I’m going to rebuild
it tomorrow and see what happens.

Yes, you should try that because I don’t understand what could be the problem.

    Yes, it does, what would be nifty is to also show past/old

reminders that weren’t completed,n the case where I didn’t get around to
doing them, instead of just disappearing, still being there. Maybe I need
to write a search for old reminders, and put that on my at-a-glance page,
and then I won’t have duplicates between the calendar and the “regular”
reminder portlet.

I’m not sure I understand your need. You want that the portlet show a
reminder set 2 weeks ago in itself ? That’s the calendar job : click
on the portlet title. You can see all reminders/task for every single
month if you need.

Sorry, let me try again.  I like the portlet showing just the 

upcoming week stuff, so I don’t need to see far off reminders like the
reminder portlet. But, if I happen to miss a reminder on a particular
week, I don’t want it to disappear, because then I might never see it. My
ideal would be to have a list of old, uncompleted reminders maybe at the
top, and then show the current week with the days.
Perhaps what I should do is write a search that says type=reminder
AND date < Sunday of this week, and then have the calendar to show
upcoming reminders, and my query to show those ones that I missed.