Modify

Opened 4 years ago

Last modified 4 years ago

#10824 new enhancement

Project filter not used in ICalendar export

Reported by: gdo@… Owned by: falkb
Priority: normal Component: SimpleMultiProjectPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0

Description

When I export the roadmap in ICalendar format (bottom button), the project filter is not used and I get all milestones...

Attachments (0)

Change History (8)

comment:1 Changed 4 years ago by anonymous

Type: defectenhancement

Also should be used to export project calendar like:

RewriteEngine on
RewriteRule ([^/.]+)/roadmap/([^/.]+)/ics /$1/roadmap?user=$2&format=ics&project=myproject

comment:2 in reply to:  1 Changed 4 years ago by falkb

Replying to anonymous:

Seems you know what you're talking about... what do you mean with this construction? Is it a patch already? Sorry, currently I'm in hurry... so I've just spent 1 minute to look at this ticket... maybe some more details could safe me for spending more...

comment:3 Changed 4 years ago by anonymous

For now the link on bottom let you get the milestones calendar (gets all projects milestones). I propose to add the project variable in the url to get the calendar of only this project. Hope I'm clear enough

comment:4 in reply to:  3 Changed 4 years ago by falkb

Replying to anonymous:

...I propose to add the project variable in the url...

simplemultiprojectplugin/trunk/simplemultiproject/roadmap.py#L65 inserts the project multi-choice box by searching for html source pattern '//form[@id="prefs"]/fieldset/div[1]' and then casting a stream = stream | filter.before...... spell... I suppose your proposed modification could be done in a similar way... searching for the pattern and then inject the change in the html source... I usually look at the html source of the roadmap page (which can be retrieved from your internet browser) and try to imagine what a significant pattern around that source location is... maybe could you try to patch it this way by yourself... ?

comment:5 Changed 4 years ago by anonymous

Did you try to patch as proposed in 4?

comment:6 Changed 4 years ago by anonymous

Sorry but I don't know python ;( ... I'm just a user

comment:7 in reply to:  1 Changed 4 years ago by falkb

Replying to anonymous:

Also should be used to export project calendar like:

RewriteEngine on
RewriteRule ([^/.]+)/roadmap/([^/.]+)/ics /$1/roadmap?user=$2&format=ics&project=myproject

Where did you copy this two lines from?

comment:8 Changed 4 years ago by falkb

Owner: changed from Christopher Paredes to falkb

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain falkb.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.