Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#8916 closed defect (fixed)

[patch] util.get_module_path() cleanup

Reported by: anatoly techtonik <techtonik@…> Owned by: Remy Blank
Priority: normal Milestone: 0.12
Component: admin/web Version: 0.11-stable
Severity: trivial Keywords: patch
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

replace spurious comment with a valid docstring remove orphaned imports

patch for 0.11dev

Attachments (1)

get_module_path.diff (1.6 KB ) - added by anatoly techtonik <techtonik@…> 14 years ago.
sane docstring for get_module_path()

Download all attachments as: .zip

Change History (9)

by anatoly techtonik <techtonik@…>, 14 years ago

Attachment: get_module_path.diff added

sane docstring for get_module_path()

comment:1 by Remy Blank, 14 years ago

Milestone: 0.12
Owner: set to Remy Blank

I'm quite sure the obsolete imports have been removed already on trunk, as I made a pass with pylint. I'll fix the docstring.

comment:2 by Remy Blank, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in [8990]. However, the comment was correct: the function really does return the plugin from which a module is imported.

comment:3 by anatoly techtonik <techtonik@…>, 14 years ago

You're confusing me. Maybe it is used to determine plugin from which a module is imported, but what it does is determine path from which any module is imported. Not necessary the plugin.

Can you reopen this and check again?

comment:4 by anatoly techtonik <techtonik@…>, 14 years ago

Resolution: fixed
Status: closedreopened

And for most modules it will return path to site-packages/ without any plugin references.

comment:5 by Remy Blank, 14 years ago

Resolution: fixed
Status: reopenedclosed

AFAICT, the function will return the path to the plugin if the plugin was installed as an egg, or through easy_install. OTOH, the initial comment referred to the first part of the function only. Hopefully [8992] is ok.

comment:6 by anatoly techtonik <techtonik@…>, 14 years ago

Much better, thanks. It would be nice to see this ported to 0.11 as well, because Trac Admin shows incorrect info for plugins not packaged as eggs (I hope Trac supports this scenario) and I am going to work a patch for 0.11 to fix this if time permits.

in reply to:  6 comment:7 by Remy Blank, 14 years ago

Replying to anatoly techtonik <techtonik@…>:

Much better, thanks. It would be nice to see this ported to 0.11 as well, because Trac Admin shows incorrect info for plugins not packaged as eggs (I hope Trac supports this scenario)

Unfortunately not. 0.11.6 was intended to be the last 0.11.x release, but we will probably have to make a 0.11.7 due to a few critical bugs. This issue is certainly not critical, so we won't include it.

and I am going to work a patch for 0.11 to fix this if time permits.

Please base your work on trunk, where the plugin admin panel has already been reworked (but probably still displays the information wrong in the case you describe).

comment:8 by anatoly techtonik <techtonik@…>, 14 years ago

Replying to rblank:

Please base your work on trunk, where the plugin admin panel has already been reworked (but probably still displays the information wrong in the case you describe).

The next version of Debian is likely to be shipped with Trac 0.11, so somebody will have to backport that patch anyway.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Remy Blank.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Remy Blank to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.