| [00:19:02] |
* |
Jomu has joined #trac |
| [00:23:36] |
* |
_shawn has quit IRC |
| [00:24:17] |
<Jomu> |
I have problem with trac.fcgi processess running wild on my machine, while apparently no request is served at all |
| [00:24:30] |
* |
_shawn has joined #trac |
| [00:25:16] |
<Jomu> |
version is 0.10.2 |
| [00:47:26] |
* |
jMCg has joined #trac |
| [00:49:15] |
* |
remiss has joined #trac |
| [00:50:05] |
<remiss> |
hey, I need some help.. what's causing this: http://pastebin.ca/338254 ? |
| [00:51:51] |
<remiss> |
it's happening when I try to change the wiki-page |
| [00:57:52] |
* |
omry has quit IRC |
| [01:00:15] |
<remiss> |
hmm.. trac obviously wants write-acces to the whole tracenv, is that right? |
| [01:02:38] |
<jMCg> |
remiss: you didn't even give it write access to the SQLite database? |
| [01:04:43] |
<remiss> |
I did that much.. |
| [01:05:31] |
<jMCg> |
remiss: did you thest the path with namei? |
| [01:06:09] |
<remiss> |
no |
| [01:07:09] |
<remiss> |
nevertheless, it was readable until trac.db and write for apache on trac.db |
| [01:07:46] |
<remiss> |
aanyway.. works now |
| [01:11:14] |
<jMCg> |
Great. |
| [01:11:21] |
<jMCg> |
Let's celebrate! |
| [01:14:17] |
<remiss> |
:p |
| [01:17:03] |
* |
m_g has joined #trac |
| [01:19:34] |
<remiss> |
hmm.. what's the normal thing to do when making a release? just attacthing the file to one of the pages? |
| [01:23:45] |
* |
em-dash has joined #trac |
| [01:28:08] |
<whereami> |
I'm having a problem with authentication on my Trac 0.10.3 site. For some reason, logins are just not remembered for very long, sometimes not at all. Using acct_mgr and HtDigestStore and acct_mgr's html login module. getting rid of cookies seems to allow one to log in sometimes. but still, not for very long. |
| [01:34:15] |
* |
whereami has quit IRC |
| [01:36:38] |
* |
em-dash has quit IRC |
| [01:38:27] |
* |
whereami has joined #trac |
| [01:45:07] |
* |
remiss has left #trac |
| [01:46:47] |
* |
em-dash has joined #trac |
| [01:48:42] |
* |
em-dash has quit IRC |
| [01:51:14] |
* |
em-dash has joined #trac |
| [01:51:53] |
* |
em-dash has quit IRC |
| [02:14:14] |
<s0undt3ch> |
have you guys sucessfuly made apache serve a static robots.txt when using trac on mod_python under /? |
| [02:22:06] |
<s0undt3ch> |
got it |
| [02:42:21] |
* |
em-dash has joined #trac |
| [02:43:29] |
* |
em-dash has joined #trac |
| [03:18:55] |
* |
linetor has quit IRC |
| [03:20:12] |
* |
omry has joined #trac |
| [03:33:27] |
* |
jpieper has joined #trac |
| [03:37:28] |
* |
eblot has joined #trac |
| [03:46:24] |
* |
Guardian has joined #trac |
| [03:53:33] |
* |
maxb has joined #trac |
| [03:54:53] |
* |
tkp has joined #trac |
| [03:55:02] |
* |
Miek has quit IRC |
| [03:59:40] |
* |
omry has quit IRC |
| [04:00:41] |
* |
em-dash has quit IRC |
| [04:06:07] |
* |
mitsuhiko has quit IRC |
| [04:10:36] |
* |
omry has joined #trac |
| [04:19:49] |
* |
_shawn has quit IRC |
| [04:36:10] |
* |
m_g has quit IRC |
| [04:37:13] |
* |
Nenad has joined #trac |
| [04:38:29] |
<Nenad> |
Hello |
| [04:39:20] |
<Nenad> |
I'm searching for a way to upload multiple attachments to a Trac Wiki page |
| [04:40:15] |
<Nenad> |
without having to use the Add Attachment button for each |
| [04:40:45] |
* |
m_g has joined #trac |
| [04:44:59] |
* |
Nenad has quit IRC |
| [04:47:01] |
* |
whereami has quit IRC |
| [04:48:30] |
* |
whereami has joined #trac |
| [05:16:05] |
<Guardian> |
hello |
| [05:18:14] |
* |
illuin has joined #trac |
| [05:21:02] |
* |
Semhirage has quit IRC |
| [05:21:41] |
* |
Semhirage has joined #Trac |
| [05:23:14] |
<illuin> |
I see that Trac can use postgresql via either psycopg2 or pyPgSQL. Is there any reason to prefer one over the other? |
| [05:36:39] |
<coderanger> |
Use psycopg2 |
| [05:38:15] |
<illuin> |
thanks |
| [05:44:49] |
* |
Guardian has quit IRC |
| [05:47:32] |
* |
m4lu6 has joined #trac |
| [06:11:12] |
* |
Guardian has joined #trac |
| [06:18:32] |
* |
idnar has quit IRC |
| [06:20:36] |
* |
idnar has joined #trac |
| [06:24:16] |
<m4lu6> |
coderanger : anything about running trac in apache cgi that might bork up request headers? It's a mystery to me why Authorization header is *never* present in _inheaders (from api.py), consequently httpauth plugin always returns a None. phooey. |
| [06:34:43] |
* |
Guardian has quit IRC |
| [06:43:48] |
* |
Miek has joined #trac |
| [07:21:54] |
* |
Guardian has joined #trac |
| [07:26:08] |
* |
rjdave has quit IRC |
| [07:30:52] |
* |
rjdave has joined #trac |
| [07:41:19] |
* |
sam` has joined #trac |
| [08:00:28] |
* |
pygi has joined #trac |
| [08:05:46] |
* |
pygi has left #trac |
| [08:08:51] |
* |
idnar has quit IRC |
| [08:08:51] |
* |
omry has quit IRC |
| [08:08:51] |
* |
twq has quit IRC |
| [08:08:51] |
* |
avar has quit IRC |
| [08:08:51] |
* |
lovedaddy has quit IRC |
| [08:08:51] |
* |
asmodai has quit IRC |
| [08:13:55] |
* |
avar has joined #trac |
| [08:14:26] |
* |
twq has joined #trac |
| [08:15:16] |
* |
illuin has left #trac |
| [08:16:00] |
* |
asmodai has joined #trac |
| [08:19:05] |
* |
idnar has joined #trac |
| [08:21:24] |
* |
omry has joined #trac |
| [08:22:34] |
* |
omry has joined #trac |
| [08:29:20] |
* |
omry has quit IRC |
| [09:05:40] |
* |
danbeck has joined #trac |
| [09:10:22] |
* |
matt_good has joined #trac |
| [09:14:23] |
* |
WHiTeFLy has joined #trac |
| [09:14:33] |
<WHiTeFLy> |
hey guys |
| [09:14:40] |
<WHiTeFLy> |
i have a q about linking a page in trac |
| [09:14:54] |
<WHiTeFLy> |
anyone not AFK? |
| [09:16:04] |
<matt_good> |
WHiTeFLy: it's best to just ask your question and someone will try to answer it when they're around |
| [09:17:02] |
<WHiTeFLy> |
okie dokie |
| [09:17:24] |
<WHiTeFLy> |
How do I make a page automatically redirect to another site instead of just making a link? |
| [09:19:32] |
<m4lu6> |
How/where do I add a new Resolution to the ticketing system? (or does someone have a better idea for displaying assigning 'in-progress' items)? |
| [09:19:42] |
<m4lu6> |
Oh, and I got Mylar working. Coooool stuff. |
| [09:22:12] |
<WHiTeFLy> |
instead of just posting a link on one of my trac pages, i want it auto-direct you to the page, how do i do that? |
| [09:26:37] |
<matt_good> |
WHiTeFLy: there's an old macro for that, but I'm not sure if it works on current versions: http://trac.edgewall.org/wiki/MacroBazaar#Redirect |
| [09:26:40] |
<m4lu6> |
WHiTeFLy you talking about a redirect? |
| [09:27:24] |
<WHiTeFLy> |
well ya |
| [09:27:32] |
<matt_good> |
m4lu6: why would you be marking an "in-progress" ticket as "resolved"? |
| [09:27:56] |
<matt_good> |
we typically use "accepted" as a sign the developer is actually working on a ticket |
| [09:27:56] |
<WHiTeFLy> |
i dont even want to link to a trac site, just to http://www.abcd. om |
| [09:29:06] |
<matt_good> |
WHiTeFLy: you can't do that directly in Trac, so you'll need to write a macro for it |
| [09:29:09] |
<m4lu6> |
matt_good understood, but my manager wants me to add an 'in-progress' status to the Resolutions drop down on our Trac. I'd love to say "Sod off, tosser.", but I chewed up all my insubordination points for the month already. |
| [09:32:16] |
<m4lu6> |
i guess it's because manager wants our Clients to 'see' that an item is being worked on. "Accepted" means, to them, "I've seen it, and I agree to do it.", while "in-progress' means "Your crummy task is currently being worked on, in my editor, at this moment." yada yada. |
| [09:32:24] |
* |
LionsMane has joined #trac |
| [09:32:34] |
<m4lu6> |
So. How do I add a Resolution to the resolution drop down? :) |
| [09:38:52] |
<matt_good> |
m4lu6: well, it's not "official", but you can add it directly in the DB |
| [09:39:15] |
<matt_good> |
but it'll be a PITA because when you actually fix the ticket you'll need to reopen it before actually marking it as fixed |
| [09:39:57] |
<m4lu6> |
that's what they want, that's what they get. |
| [09:40:43] |
* |
Jomu has quit IRC |
| [09:40:58] |
* |
agile has quit IRC |
| [09:41:26] |
<m4lu6> |
i suppose I could talk them out of it, if I could do a 'in-progress' action. does that make more sense to you? |
| [09:42:45] |
* |
danbeck has quit IRC |
| [09:43:16] |
* |
danbeck has joined #trac |
| [09:44:57] |
* |
danbeck has quit IRC |
| [09:45:27] |
* |
danbeck has joined #trac |
| [09:47:45] |
* |
LionsMane has quit IRC |
| [09:55:18] |
* |
danbeck_ has joined #trac |
| [10:10:09] |
* |
danbeck has quit IRC |
| [10:17:08] |
* |
matt_good has quit IRC |
| [10:17:23] |
* |
matt_good_ has joined #trac |
| [10:33:16] |
* |
chandlerc has joined #trac |
| [10:35:49] |
* |
_shawn has joined #trac |
| [10:37:00] |
* |
danbeck_ has quit IRC |
| [10:40:38] |
* |
Miek has quit IRC |
| [10:43:14] |
* |
Miek has joined #trac |
| [10:48:42] |
* |
kopernikus has joined #trac |
| [11:20:17] |
* |
maxb has quit IRC |
| [11:20:20] |
* |
maxb_ has joined #trac |
| [11:21:20] |
* |
maxb_ is now known as maxb |
| [11:44:08] |
* |
WHiTeFLy has quit IRC |
| [11:45:49] |
* |
johnboy has joined #trac |
| [11:45:56] |
<johnboy> |
hello everyone |
| [11:46:08] |
<johnboy> |
ive got a question about trac |
| [11:46:13] |
<johnboy> |
anyone care to assist? |
| [11:46:25] |
<pacopablo> |
won't know until you actually ask the question |
| [11:46:30] |
<johnboy> |
cool |
| [11:46:52] |
<johnboy> |
I've installed trac and have a valid set up, i run the webserver which is included |
| [11:47:02] |
<johnboy> |
however when i point to http://localhost |
| [11:47:13] |
<johnboy> |
i get the following: available projects |
| [11:47:19] |
<johnboy> |
nothing about trac |
| [11:47:56] |
<pacopablo> |
did you create a trac environment? |
| [11:48:00] |
<johnboy> |
yes |
| [11:48:04] |
<johnboy> |
if you mean the folders? |
| [11:48:22] |
<pacopablo> |
and what's the command line that you are using to run tracd ? |
| [11:48:27] |
<johnboy> |
yup |
| [11:48:59] |
* |
IamLordV1ldemort has joined #trac |
| [11:49:06] |
<johnboy> |
tracd.py p8000 c:\projects\svn\my-projects |
| [11:49:11] |
<IamLordV1ldemort> |
Hows all |
| [11:49:13] |
<pacopablo> |
evil has arrived! |
| [11:49:31] |
* |
IamLordV1ldemort aims my wands. |
| [11:49:33] |
<IamLordV1ldemort> |
Never mind |
| [11:49:34] |
<johnboy> |
hello, I'm a newb here |
| [11:49:36] |
<IamLordV1ldemort> |
I will keep that "put away" |
| [11:49:37] |
<IamLordV1ldemort> |
=P |
| [11:49:43] |
* |
omry has joined #trac |
| [11:49:51] |
<pacopablo> |
IamLordV1ldemort: yeah, don't point that thing at me! ;) |
| [11:50:13] |
<IamLordV1ldemort> |
pacopablo: Well, freenode rejected DrunkenCompanyWreakingIntellectualPropertyThief as a nick |
| [11:50:24] |
<johnboy> |
lol |
| [11:50:28] |
<pacopablo> |
johnboy: I take it that you are acutally using: tracd.py -p 8000 c:\projects\svn\my-projects |
| [11:50:34] |
<johnboy> |
yup |
| [11:50:38] |
<pacopablo> |
IamLordV1ldemort: so, sad |
| [11:50:43] |
<IamLordV1ldemort> |
pacopablo: Life. |
| [11:50:46] |
<pacopablo> |
there is always DrCript |
| [11:50:51] |
<IamLordV1ldemort> |
hahahaha |
| [11:50:58] |
<IamLordV1ldemort> |
I really do like that. |
| [11:51:07] |
<IamLordV1ldemort> |
Maybe we should revert to that nam for TenV |
| [11:51:10] |
<IamLordV1ldemort> |
Tenv PRO |
| [11:51:11] |
<IamLordV1ldemort> |
=P |
| [11:51:22] |
<pacopablo> |
johnboy: is c:\projects\svn\my-projects your subversion repository? |
| [11:51:34] |
<IamLordV1ldemort> |
johnboy: Does it make any difference if you uise / instead of \? |
| [11:51:46] |
<IamLordV1ldemort> |
johnboy: I thinmk that python is smarter than that, but I would try. |
| [11:52:06] |
<pacopablo> |
or what you used when you did: trac-admin.py c:\projects\svn\my-projects initenv ? |
| [11:52:13] |
<pacopablo> |
finally, logging: |
| [11:52:17] |
<pacopablo> |
@faq logging |
| [11:52:17] |
<evil_twin> |
pacopablo: "logging" is http://trac.edgewall.org/wiki/TracLogging <-- Enable debug logging to file, ensure your environments log/ directory is writeable by your web server user, check for errors. |
| [11:52:48] |
<johnboy> |
hmm |
| [11:52:51] |
<johnboy> |
no diff |
| [11:53:28] |
<johnboy> |
am im ment to get available projects? |
| [11:53:32] |
<johnboy> |
or am i ment to see trac? |
| [11:53:59] |
<pacopablo> |
you're meant to get a list of available projects |
| [11:54:16] |
<johnboy> |
this is odd |
| [11:54:20] |
<pacopablo> |
you need to use -s if you want tracd to run the env off of / |
| [11:54:35] |
<pacopablo> |
but you're supposed to a list of projects, not just "available projects" |
| [11:54:44] |
<johnboy> |
ok |
| [11:54:45] |
<pacopablo> |
is tracd saying anything? |
| [11:54:50] |
<johnboy> |
yeh |
| [11:54:54] |
<pacopablo> |
what? |
| [11:54:55] |
<asmodai> |
It wants the weekend of. |
| [11:54:58] |
<asmodai> |
off |
| [11:55:02] |
<johnboy> |
lol |
| [11:55:05] |
<johnboy> |
yeh no doubt |
| [11:55:06] |
<asmodai> |
;) |
| [11:55:09] |
<johnboy> |
:) |
| [11:55:09] |
* |
asmodai pats pacopablo |
| [11:56:06] |
<johnboy> |
trac: Error |
| [11:56:06] |
<johnboy> |
([Errno 2] No such file or directory: 'c:\\Projects\\svn\\trac\\VERSION') |
| [11:56:13] |
<johnboy> |
i'm getting that error in ie |
| [11:56:42] |
<pacopablo> |
which means that you're passing 'C:\projects\svn\trac' to tracd |
| [11:56:56] |
<johnboy> |
WOAH |
| [11:56:58] |
<johnboy> |
yipeeeeeeeeee |
| [11:57:08] |
<johnboy> |
it works!! |
| [11:57:33] |
* |
pacopablo curses div's |
| [11:57:39] |
<pacopablo> |
HTML sucks |
| [11:58:25] |
<johnboy> |
lol |
| [11:58:38] |
<johnboy> |
i now how to figure out how to customize these pages |
| [11:59:19] |
<johnboy> |
can i ask 1 more question |
| [11:59:20] |
<johnboy> |
? |
| [11:59:43] |
<johnboy> |
ive got apache running (which is switched off for now) but can i use appache to load my website and trac? |
| [12:00:02] |
<pacopablo> |
@wiki TracModPython |
| [12:00:02] |
<evil_twin> |
pacopablo: http://trac.edgewall.org/wiki/TracModPython |
| [12:00:08] |
<pacopablo> |
@wiki TracFastCgi |
| [12:00:08] |
<evil_twin> |
pacopablo: http://trac.edgewall.org/wiki/TracFastCgi |
| [12:00:16] |
<pacopablo> |
@wiki TracCgi |
| [12:00:16] |
<evil_twin> |
pacopablo: http://trac.edgewall.org/wiki/TracCgi |
| [12:00:22] |
<johnboy> |
there for me? |
| [12:00:22] |
<pacopablo> |
take your pick |
| [12:00:32] |
<pacopablo> |
yes |
| [12:00:33] |
<johnboy> |
the first one ;) |
| [12:00:51] |
<kopernikus> |
hi, in 0.11 dev the PermissionCache is used as a sequence in a genshi template but it doesn't implement the iterator protocol |
| [12:01:27] |
<johnboy> |
woah looks complex |
| [12:01:39] |
<kopernikus> |
Now adding that would be easy, but I'm not clear about the semantics of PermissionSystem |
| [12:01:41] |
<pacopablo> |
johnboy: it's apache, what did you expect? |
| [12:01:46] |
<johnboy> |
lol |
| [12:02:00] |
<johnboy> |
ill read and study the pages |
| [12:02:07] |
<johnboy> |
thanks by the way pacopablo |
| [12:02:10] |
<johnboy> |
your a star |
| [12:02:11] |
<johnboy> |
* |
| [12:02:13] |
<johnboy> |
:) |
| [12:03:23] |
<kopernikus> |
the docstring of PermissionSystem.get_user_permissions() stages it returns a dict with actions as keys and True and False as value, for granted and denied permissions |
| [12:04:54] |
<kopernikus> |
but PermissionCache.permissions() returns all permissions from PermissionSystem.get_user_permissions() without checking the value and it seems PermissionSystem.get_user_permissions() never sets a value to "False"... |
| [12:05:36] |
<pacopablo> |
kopernikus: you'll want to ping cboos |
| [12:05:46] |
<pacopablo> |
or send a message to trac-dev |
| [12:06:04] |
* |
johnboy has quit IRC |
| [12:09:45] |
<asmodai> |
I parsed that as pinging chaos |
| [12:11:48] |
<pacopablo> |
asmodai: that's been know to work at times too ;) |
| [12:12:19] |
<asmodai> |
But I might just create a typhoon across the world |
| [12:13:26] |
<kopernikus> |
hmm, I wonder if __contains__ will be enought ;) |
| [12:16:21] |
* |
hotte has joined #trac |
| [12:23:31] |
* |
tkp has quit IRC |
| [12:56:22] |
<gmoore> |
let me say that trac+svn is the great combination ever |
| [12:56:39] |
<gmoore> |
and that trac has a stupifying level of detail |
| [12:57:00] |
<gmoore> |
eg clicking on the green part of the milestone progress bar showing you closed tickets and the white part showing you white tickets |
| [12:57:15] |
<gmoore> |
gooooooooo trac |
| [13:03:25] |
* |
hotte has quit IRC |
| [13:04:01] |
* |
hotte has joined #trac |
| [13:05:34] |
<matt_good_> |
kopernikus: obviously the docstring is wrong there, cmlenz probably wrote that before the API was finished and forgot to update it when the API changed |
| [13:05:58] |
<matt_good_> |
kopernikus: normally we just use 'PERM_XYZ' in req.perm |
| [13:06:58] |
* |
kopernikus has quit IRC |
| [13:07:54] |
* |
goldeagle has joined #trac |
| [13:22:30] |
* |
mi|home has joined #trac |
| [13:28:45] |
* |
agile has joined #trac |
| [13:31:55] |
* |
omry has quit IRC |
| [14:08:55] |
* |
sebastian has joined #trac |
| [14:09:02] |
<sebastian> |
hi everybody! |
| [14:10:26] |
<sebastian> |
I am currently struggeling to write my first trac plugin... unfortunately I don't get the examples running (I changed some naming and that might be the problem...) |
| [14:11:03] |
* |
Guard][an has joined #trac |
| [14:11:31] |
<sebastian> |
when I want to implement a new plugin, is there a convention how to name the classes, the files, etc? |
| [14:11:34] |
* |
Guardian has quit IRC |
| [14:11:42] |
* |
Guard][an is now known as Guardian |
| [14:11:53] |
<sebastian> |
does something have to be named in a similar way? |
| [14:15:26] |
<pacopablo> |
how familiar are you with python? |
| [14:15:35] |
<pacopablo> |
and what docs have you been following? |
| [14:16:16] |
<sebastian> |
python - I wish it would be more, trac is currently the example I want learn it with |
| [14:16:29] |
<sebastian> |
docs: http://trac-hacks.org/wiki/EggCookingTutorial/BasicEggCooking and http://trac.edgewall.org/wiki/TracDev/PluginDevelopment |
| [14:16:37] |
<sebastian> |
but the big picture is still missing :-( |
| [14:16:39] |
<sebastian> |
that is the problem |
| [14:16:54] |
<pacopablo> |
k |
| [14:17:03] |
<pacopablo> |
first, it doesn't matter what you name your classes |
| [14:17:22] |
<pacopablo> |
the main thing is that they are subclasses of Component |
| [14:17:58] |
<pacopablo> |
second, your plugin will need to implement a few interfaces (otherwise it propbably won't be very useful) |
| [14:18:08] |
<pacopablo> |
what kind of plugin are you trying to make? |
| [14:18:33] |
<sebastian> |
I start with the example |
| [14:18:36] |
<sebastian> |
started* |
| [14:19:02] |
* |
hotte has quit IRC |
| [14:19:06] |
<sebastian> |
however trac does not load it :-( It is shown in debug log, but not in the "about modules" view |
| [14:19:19] |
* |
matt_good_ has quit IRC |
| [14:19:22] |
<pacopablo> |
and you enabled it in trac.ini? |
| [14:19:48] |
<pacopablo> |
or did you put it in the plugins dir of your env? |
| [14:22:05] |
<sebastian> |
locally |
| [14:22:07] |
<sebastian> |
yes |
| [14:22:13] |
<sebastian> |
i put it in the plugins dir |
| [14:22:18] |
<sebastian> |
but just as .egg-link |
| [14:22:44] |
<pacopablo> |
that's the name of the file? |
| [14:23:01] |
<pacopablo> |
or did you create a symlink to the .egg ? |
| [14:24:10] |
<sebastian> |
I used " python setup.py develop -md /var/www/trac/plugins/ " |
| [14:25:02] |
<pacopablo> |
that should be fine |
| [14:25:17] |
<sebastian> |
hmm |
| [14:25:25] |
<sebastian> |
so... |
| [14:25:31] |
<pacopablo> |
though, you could try creating the egg an dropping it in there |
| [14:25:42] |
<sebastian> |
can I ask some questions just to make sure I got it correctly... |
| [14:25:52] |
<pacopablo> |
sure |
| [14:26:35] |
<sebastian> |
I have a setup.py - where I define a "name" of the package -- this is displayed in trac, right? but the name does not have to appear in the module itself again? |
| [14:27:15] |
<sebastian> |
then, in the same file, I have a list of "packages" - each "package" is a subdirectory, and inside of each, there needs to be an __init__.py which is executed |
| [14:27:20] |
<sebastian> |
is that correct so far? |
| [14:28:00] |
<pacopablo> |
pretty much |
| [14:28:29] |
<s0undt3ch> |
how can I know which is the top directory for a setuptols project? |
| [14:28:45] |
<pacopablo> |
it doesn't really matter |
| [14:29:02] |
<sebastian> |
okay... and inside the __init__.py we f.e. have the line "from helloworld2 import *" where "helloworld2.py" is a file at the same level as the __init__.py? |
| [14:29:04] |
<s0undt3ch> |
I know the info is on top_level.txt, but how can I read it? withough trying to guess the path? |
| [14:29:20] |
<sebastian> |
does it matter how I name the class inside helloworld2.py? |
| [14:29:53] |
<pacopablo> |
s0undt3ch: sorry, thought you were sebastian :) |
| [14:29:56] |
<pacopablo> |
s0undt3ch: no clue |
| [14:30:06] |
<pacopablo> |
sebastian: no |
| [14:30:15] |
<s0undt3ch> |
heh |
| [14:30:16] |
<pacopablo> |
sebastian: all you have to do is have a line: |
| [14:30:18] |
<s0undt3ch> |
no prob |
| [14:30:26] |
<sebastian> |
pacopablo: it just loads every class inside the file? |
| [14:30:26] |
<pacopablo> |
__all__ = ['MyClassName'] |
| [14:30:40] |
<pacopablo> |
sebastian: no, it loads all classes specified in __all__ |
| [14:30:43] |
<sebastian> |
ooh, where does that line need to be? |
| [14:30:44] |
<sebastian> |
AAAH |
| [14:30:49] |
<sebastian> |
:-D |
| [14:30:51] |
<pacopablo> |
sebastian: generally at the top |
| [14:30:56] |
<sebastian> |
in which file? |
| [14:31:03] |
<pacopablo> |
helloworld2.py |
| [14:31:08] |
<sebastian> |
okay |
| [14:31:12] |
<pacopablo> |
from foo import * |
| [14:31:16] |
<sebastian> |
hmm that is not listed in any example, right? |
| [14:31:42] |
<pacopablo> |
means from foo.py import all classes listed in __all__ |
| [14:31:57] |
<pacopablo> |
sebastian: don't know, it's part of the python docs ;) |
| [14:32:02] |
<sebastian> |
lol |
| [14:32:04] |
<sebastian> |
okay |
| [14:32:05] |
<pacopablo> |
you can still access any class in a file |
| [14:32:08] |
<sebastian> |
oki |
| [14:32:09] |
<pacopablo> |
you jsut have to be explicit about it |
| [14:32:16] |
<pacopablo> |
so: from foo import bar |
| [14:32:17] |
<sebastian> |
hm does not work yet |
| [14:32:20] |
<sebastian> |
but I will try again |
| [14:32:22] |
<sebastian> |
thanks |
| [14:32:28] |
<sebastian> |
that has already helped me! |
| [14:32:34] |
<sebastian> |
okay, one more question... |
| [14:32:49] |
<sebastian> |
concerning the entry points in "setup.py" |
| [14:33:24] |
<pacopablo> |
s0undt3ch: why do you want to know the top level directory of a setuptools project? |
| [14:33:25] |
<sebastian> |
they have the form "foo = blahblah" where "foo" is an identifier used just by setuptools, right? |
| [14:33:51] |
<pacopablo> |
sebastian: this is where I generally fail in my understanding |
| [14:34:01] |
<sebastian> |
what does "blahblah" need to be? the name of the module (== the subdirectory where init resides?) |
| [14:34:06] |
<pacopablo> |
but as far as I understand, the foo should be the package name |
| [14:34:06] |
<s0undt3ch> |
pacopablo: well, what I really want to know is which are the packages found for find_packages() |
| [14:34:25] |
<pacopablo> |
s0undt3ch: use the source! |
| [14:34:26] |
<s0undt3ch> |
currently the top_level suites, I normally just make a simgle top level dir |
| [14:34:55] |
<s0undt3ch> |
pacopablo: what source? :) pkg_resources source? |
| [14:35:20] |
<pacopablo> |
s0undt3ch: wherever find_packages() is defined ;) |
| [14:35:52] |
<s0undt3ch> |
it's one project, trying to read other project's resources |
| [14:35:59] |
<s0undt3ch> |
not reading it's own |
| [14:36:16] |
<s0undt3ch> |
ie, trying to read an unknown package |
| [14:37:40] |
<pacopablo> |
sebastian: http://trac-hacks.org/browser/siteuploadplugin/0.10 |
| [14:37:49] |
<pacopablo> |
that's how I usually layout my projects |
| [14:38:23] |
<sebastian> |
thanks |
| [14:39:00] |
<sebastian> |
what do you need setup.cfg for? |
| [14:39:13] |
<pacopablo> |
you don't |
| [14:39:28] |
<pacopablo> |
but when working from svn it's nice, cus it will tag the egg with the svn rev number |
| [14:40:21] |
* |
kopernikus has joined #trac |
| [14:40:34] |
<sebastian> |
ah okay |
| [14:41:36] |
<s0undt3ch> |
pacopablo: project.basedir = dist.location |
| [14:42:05] |
<s0undt3ch> |
pacopablo: project.path = os.path.join(project.basedir, file(os.path.join(dist.location,dist.project_name + '.egg-info','top_level.txt')).readline().strip()) |
| [14:42:20] |
<s0undt3ch> |
:) |
| [14:42:21] |
<pacopablo> |
fun |
| [14:43:09] |
<s0undt3ch> |
I wonder if there's two top dirs ;) |
| [14:43:30] |
<sebastian> |
hmm.. I found the error - but I dont understand it - the component needed to be enabled still |
| [14:43:41] |
<sebastian> |
I am sure I installed it locally but it still needed to be enabled |
| [14:43:53] |
<sebastian> |
but it it working now |
| [14:44:04] |
<sebastian> |
thanks for your help :-D |
| [14:44:23] |
<sebastian> |
and good night! |
| [14:44:54] |
* |
sebastian has quit IRC |
| [15:05:19] |
* |
jMCg has quit IRC |
| [15:08:03] |
* |
omry has joined #trac |
| [15:45:44] |
* |
mi|home has quit IRC |
| [15:49:57] |
* |
pygi has joined #trac |
| [15:51:05] |
* |
coderanger_ has joined #trac |
| [15:58:13] |
* |
dilinger has quit IRC |
| [16:12:17] |
* |
m_g has quit IRC |
| [16:13:15] |
* |
matt_good has joined #trac |
| [16:31:41] |
* |
dilinger has joined #trac |
| [16:36:21] |
* |
Eridius has quit IRC |
| [16:36:32] |
* |
Eridius has joined #trac |
| [16:40:11] |
<matt_good> |
dilinger: off topic, but how would I go about getting a new package into Debian? |
| [16:40:51] |
<coderanger_> |
I would recommend sending a dev large numbers of non-sequential bills for a start .... |
| [16:49:57] |
<dilinger> |
i like coderanger_'s idea |
| [16:50:03] |
<matt_good> |
heh |
| [16:50:20] |
<dilinger> |
matt_good: email the maintainers w/ a patch? or ask to join the team? |
| [16:50:46] |
<matt_good> |
this is my own app that is not currently in Debian |
| [16:50:53] |
<dilinger> |
ooh |
| [16:50:58] |
<dilinger> |
i thought you meant a new trac package |
| [16:51:20] |
<matt_good> |
no, they seem to keep up with the Trac releases pretty well |
| [16:54:06] |
<matt_good> |
I just fixed up the build depends in pbuilder and lintian doesn't give me anything, so I think it should be ok |
| [16:56:50] |
* |
kopernikus has quit IRC |
| [17:05:38] |
< |