Modify

Opened 4 years ago

Closed 3 years ago

#6796 closed defect (wontfix)

[Patch] Date fields do not work when AutoQueryPlugin is enabled

Reported by: anonymous Owned by: doki_pen
Priority: normal Component: DateFieldPlugin
Severity: major Keywords:
Cc: tomi.peiov@… Trac Release: 0.11

Attachments (1)

datefield_with_autoquery_ticket.patch (622 bytes) - added by fecht 4 years ago.
PATCH for using datefield with autoquery

Download all attachments as: .zip

Change History (7)

comment:1 Changed 4 years ago by anonymous

  • Cc tomi.peiov@… added

comment:2 Changed 4 years ago by anonymous

This is the environment I'm using:

System Information

Trac:	0.11.6
Python:	2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)]
setuptools:	0.6c11
SQLite:	3.6.2
pysqlite:	2.5.6
Genshi:	0.5.1
mod_python:	3.3.2-dev-20080819
Pygments:	1.1.1
Subversion:	1.6.6 (r40053)
CustomFieldAdmin:	0.2.2
RPC:	1.0.6
jQuery:	1.2.6
Configuration

Section	Name	Value
account-manager	account_changes_notify_addresses	
force_passwd_change	True
generated_password_length	8
hash_method	HtDigestHashMethod
notify_actions	[]
announcer	admit_domains	
always_notify_component_owner	true
always_notify_owner	true
always_notify_reporter	true
always_notify_updater	true
ctxtnav_names	Watch ThisUnwatch This
default_email_format	text/plain
email_address_resolvers	SpecifiedEmailResolver, SessionEmailResolver, DefaultDomainEmailResolver
ignore_cc_changes	false
ignore_domains	
joinable_groups	
mime_encoding	base64
smtp_always_bcc	
smtp_always_cc	
smtp_default_domain	
smtp_enabled	false
smtp_from	trac@localhost
smtp_from_name	
smtp_password	
smtp_port	25
smtp_replyto	trac@localhost
smtp_server	localhost
smtp_subject_prefix	__default__
smtp_to	
smtp_user	
ticket_email_header_fields	owner, reporter, milestone, priority, severity
ticket_email_subject	Ticket #${ticket.id}: ${ticket['summary']} {% if action %}[${action}]{% end %}
use_public_cc	false
use_short_addr	false
use_threaded_delivery	false
use_tls	false
watchable_paths	wiki/*,ticket/*
wiki_email_diff	true
wiki_email_subject	Page: ${page.name} ${action}
attachment	max_size	262144
render_unsafe_content	false
autoquery	excluded_fields	estimatedhourshourstotalhours
query_args	&order=priority
blackmagic	gray_disabled	
permissions	MASTER_OF_PERMISSIONS
priority.permission	MASTER_OF_PERMISSIONS
priority.tip	The priority is the Project-defined importance of the issue, and in general the order in which things will tend to be done.
tweaks	priority
browser	color_scale	True
downloadable_paths	/trunk, /branches/*, /tags/*
hide_properties	svk:merge
intermediate_color	
intermediate_point	
newest_color	(255, 136, 136)
oldest_color	(136, 136, 255)
oneliner_properties	trac:summary
render_unsafe_content	false
wiki_properties	trac:description
changeset	max_diff_bytes	10000000
max_diff_files	0
wiki_format_messages	true
components	acct_mgr.admin.accountmanageradminpage	disabled
advancedworkflow.controller.ticketworkflowopownercomponent	enabled
advancedworkflow.controller.ticketworkflowopownerfield	enabled
advancedworkflow.controller.ticketworkflowopownerprevious	enabled
advancedworkflow.controller.ticketworkflowopownerreporter	enabled
advancedworkflow.controller.ticketworkflowoprunexternal	enabled
advancedworkflow.controller.ticketworkflowopstatusprevious	enabled
advancedworkflow.controller.ticketworkflowoptriage	enabled
advancedworkflow.controller.ticketworkflowopxref	enabled
announcerplugin.*	disabled
autoquery.autoquery.autoqueryplugin	disabled
blackmagic.*	enabled
cc_selector.cc_selector.ticketwebuiaddon	enabled
customfieldadmin.api.customfields	enabled
customfieldadmin.customfieldadmin.customfieldadminpage	enabled
customroadmap.web_ui.customroadmapticketgroupstatsprovider	enabled
datefield.*	enabled
doxygentrac.doxygentrac.doxygenplugin	disabled
footnotemacro.macro.footnotemacro	enabled
gantt.gantt.ganttmacro	enabled
ganttcalendar.ticketcalendar.ticketcalendarplugin	enabled
ganttcalendar.ticketgantt.ticketganttchartplugin	enabled
graphviz.graphviz.graphviz	enabled
iniadmin.iniadmin.iniadminplugin	enabled
logviewer.*	enabled
mastertickets.api.masterticketssystem	enabled
mastertickets.web_ui.masterticketsmodule	enabled
projectplan.projectplan.ppcachecontentprovider	enabled
projectplan.projectplan.ppconfigadminpanel	enabled
projectplan.projectplan.projectplanmacro	enabled
revtree.*	enabled
sequencediagram.macro.sequencediagrammacro	enabled
svnauthz.svnauthz.svnauthzplugin	enabled
svnurls.*	enabled
talm_importer.*	enabled
ticket_clone.*	enabled
ticketmodifiedfiles.ticketmodifiedfiles.ticketmodifiedfilesplugin	enabled
ticketmoverplugin.ticketmover.ticketmover	disabled
ticketmoverplugin.web_ui.ticketmoverhandler	disabled
ticketmoverplugin.web_ui.ticketmoversidebar	disabled
ticketsidebarprovider.example.sampleticketsidebarprovider	disabled
ticketsidebarprovider.ticketsidebar.ticketsidebarprovider	disabled
ticketstatsmacro.ticketstatsmacro	enabled
ticketsubmitpolicy.policies.ticketexcludes	enabled
ticketsubmitpolicy.policies.ticketrequires	enabled
ticketsubmitpolicy.ticketsubmitpolicy.ticketsubmitpolicyplugin	enabled
ticketvalidator.admin.ticketvalidatoradminpanelprovider	enabled
ticketvalidator.admin.ticketvalidatorchrome	enabled
ticketvalidator.core.requiredfieldvalidator	enabled
trac.versioncontrol.web_ui.main.versioncontrolui	enabled
tracbacks.tracbacks.tracbacksplugin	enabled
tracrpc.*	enabled
tractoc.macro.tocmacro	enabled
tracusermanager.account.admin_um.accountusermanagerpanel	enabled
tracusermanager.admin.usermanagementadminpage	enabled
tracusermanager.api.cachedsessionattributeprovider	enabled
tracusermanager.api.environmentfixknownusers	enabled
tracusermanager.api.sessionattributeprovider	enabled
tracusermanager.api.sessionuserstore	enabled
tracusermanager.api.usermanager	enabled
tracusermanager.permissions.admin_um.permissionusermanagerpanel	enabled
tracusermanager.profile.admin.userprofilefieldsadminpage	enabled
tracusermanager.profile.admin_um.userprofileusermanagerpanel	enabled
tracusermanager.profile.api.userprofilemanager	enabled
tracusermanager.profile.macros.defaultuserprofileslistcellcontributor	enabled
tracusermanager.profile.macros.teamrostermacro	enabled
tracusermanager.profile.macros.userprofileslistmacro	enabled
tracusermanager.profile.prefs.userprofilemodule	enabled
tracwatchlist.plugin.watchlistplugin	disabled
tracwysiwyg.wysiwygmodule	enabled
typedworkflow.*	enabled
typedworkflow.controller.typedticketworkflow	enabled
virtualticketpermissions.policy.virtualticketpermissionspolicy	enabled
wikiprint.formats.wikiprintoutput	enabled
wikiprint.web_ui.wikiprintadmin	enabled
wikiprint.wikiprint.wikiprint	enabled
wikiprint.wikiprint.wikitohtmlpage	enabled
wikiprint.wikiprint.wikitopdfpage	enabled
wikiticketcalendarmacro.*	enabled
workfloweditor.workfloweditor_admin.workflowchangehandler	enabled
workfloweditor.workfloweditor_admin.workfloweditoradmin	enabled
wstats.macro.wstatsmacro	enabled

comment:3 Changed 4 years ago by anonymous

  • Summary changed from date fileds do not work when AutoQueryPlugin is enabled to date fields do not work when AutoQueryPlugin is enabled

Changed 4 years ago by fecht

PATCH for using datefield with autoquery

comment:4 Changed 4 years ago by fecht

Autoquery is using a different filename for 'ticket.html', which is currently not recognized

This fixes this (for me)

if filename == 'ticket.html':
->  if filename == 'ticket.html' or filename == 'autoquery_ticket.html':

I have also attached a PATCH as svn diff

comment:5 Changed 4 years ago by rjollos

  • Summary changed from date fields do not work when AutoQueryPlugin is enabled to [Patch] Date fields do not work when AutoQueryPlugin is enabled

comment:6 Changed 3 years ago by rjollos

  • Resolution set to wontfix
  • Status changed from new to closed

The AutoQueryPlugin is going away, so I don't think it is right to modify DateFieldPlugin's source with the patch in comment:4. I added a comment to the wiki page directing users to fetch's path for those using the AutoQueryPlugin.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.