| [00:07:47] |
<pacopablo> |
well, good night boys and girls |
| [00:08:20] |
<pacopablo> |
have fun with the script alect |
| [00:17:07] |
* |
cmlenz has joined #trac |
| [00:18:50] |
<alect> |
shall do paco |
| [00:18:53] |
<alect> |
see you later |
| [00:19:04] |
<alect> |
coderanger: there's a ticket about that |
| [00:19:46] |
* |
amino is now known as jesterKing |
| [00:21:12] |
* |
flox has joined #trac |
| [00:22:21] |
<coderanger> |
alect: I only see #3655, which was closed with a change to the docs saying what was wanted can't be done |
| [00:23:28] |
<alect> |
that's the one |
| [00:23:51] |
<alect> |
http://trac.edgewall.org/ticket/3655#comment:3 |
| [00:25:15] |
<coderanger> |
the biggest problem I am having right now is that the macro post handlers will be unable to check things like permissions |
| [00:25:47] |
<coderanger> |
or even req.authname |
| [00:25:54] |
<coderanger> |
since thats all done too late |
| [00:26:16] |
<alect> |
yeah exactly |
| [00:26:42] |
<alect> |
http://trac.edgewall.org/ticket/3655#comment:7 |
| [00:26:54] |
<alect> |
second paragraph is cmlenz's view on adding the mid-request filter |
| [00:27:50] |
<coderanger> |
yeah, I just disagree ;-) |
| [00:28:19] |
<coderanger> |
I can do some silly hacks to produce the same effect, but I like to avoid that whenever possible |
| [00:28:31] |
<alect> |
don't lie to me coderanger, you love it |
| [00:28:41] |
<alect> |
h@x |
| [00:29:03] |
<coderanger> |
Just because I'm good at stupid things doesn't mean I think its the best way :P |
| [00:29:09] |
<alect> |
hehe |
| [00:29:14] |
<cmlenz> |
coderanger: what exactly are you doing where you need that? |
| [00:29:29] |
<coderanger> |
A plugin to allow macros to use POST |
| [00:29:55] |
<cmlenz> |
oh |
| [00:30:10] |
<coderanger> |
right now the handlers execute during the pre-request handler |
| [00:31:04] |
<coderanger> |
I can just use the empty nav contributer trick to make them execute in a nicer context though |
| [00:31:12] |
<coderanger> |
hmm, actually no, I cant |
| [00:32:28] |
<coderanger> |
ahh, I can, the nav bar is populated before the process step |
| [00:34:10] |
<coderanger> |
cmlenz: But there are other places where its not so easy |
| [00:34:51] |
<coderanger> |
http://trac-hacks.org/browser/tracforgeplugin/0.10/tracforge/linker/auth.py#L49 |
| [00:43:51] |
<cmlenz> |
I think that any problems with pre_process_request being called either too early or too late would be better addressed by moving more of the request initialization into filters, rather than adding more hooks |
| [00:44:19] |
<coderanger> |
cmlenz: either way |
| [00:44:22] |
<cmlenz> |
then you could configure when the filter is called by changing the order of filters |
| [00:44:44] |
<coderanger> |
What does need some work though is post-filters and redirects |
| [00:44:45] |
<cmlenz> |
the only problem with that is that it's not really safe for people to screw around with the order in the config |
| [00:45:16] |
<cmlenz> |
hmm, probably true |
| [00:45:59] |
<coderanger> |
Well then you can start talking about ordering the filters automatically |
| [00:46:06] |
* |
flox has quit IRC |
| [00:46:13] |
<coderanger> |
So the components just expose dependencies |
| [00:46:22] |
<cmlenz> |
right |
| [00:46:23] |
<coderanger> |
and let the system figure it out |
| [00:46:28] |
<coderanger> |
but thats complicated ;-) |
| [00:46:52] |
<cmlenz> |
that's something I wanted to investigate for some time |
| [00:47:19] |
<coderanger> |
I've been arguing with the same thing for project creation, and still haven't found a good answer |
| [00:48:04] |
<cmlenz> |
hm? |
| [00:48:14] |
<coderanger> |
for the tracforge admin system |
| [00:48:26] |
<coderanger> |
plugins can contribute creation steps |
| [00:48:36] |
<coderanger> |
but some have to happen before others |
| [00:48:54] |
<coderanger> |
i.e. changing configs must happen after the env is made |
| [00:50:50] |
<coderanger> |
but if ConfigChanger says it depends on MakeEnv, and then you create your own MyMakeEnv |
| [00:50:55] |
<coderanger> |
things get a little hazy |
| [00:51:42] |
* |
aqeeliz has joined #trac |
| [00:51:46] |
<cmlenz> |
okay |
| [00:51:50] |
* |
barlas has quit IRC |
| [00:59:16] |
* |
mbroeken has joined #trac |
| [01:02:04] |
* |
jesterKing is now known as amino |
| [01:06:45] |
* |
amino is now known as jesterKing |
| [01:14:12] |
* |
joshmoore has joined #trac |
| [01:16:14] |
* |
LongkerDandy has quit IRC |
| [01:16:50] |
* |
LongkerDandy has joined #trac |
| [01:20:44] |
* |
Hydra has joined #trac |
| [01:40:30] |
* |
LongkerDandy has quit IRC |
| [01:42:51] |
* |
aqeeliz has quit IRC |
| [01:43:08] |
* |
barlas has joined #trac |
| [01:54:56] |
<coderanger> |
whee |
| [01:55:04] |
<coderanger> |
macropost works (i think) |
| [01:59:30] |
<alect> |
hack! |
| [01:59:32] |
<alect> |
:) |
| [01:59:48] |
<coderanger> |
now to tear addcomment to shreds ;-) |
| [02:00:56] |
<alect> |
ah yes, that seriously needs some love |
| [02:01:15] |
<coderanger> |
I think I may pick this up again tomorrow |
| [02:01:34] |
<coderanger> |
But the hooks are getting called correctly |
| [02:01:59] |
<coderanger> |
wanna give me commit to addcommentmacro/0.10 ? |
| [02:02:41] |
<alect> |
surely |
| [02:02:56] |
<coderanger> |
I did a cursory conversion to plugin at least |
| [02:02:57] |
<alect> |
i'd ask you to look at newhack, but it is brutally ugly |
| [02:03:08] |
<alect> |
for the sake of your own sanity, avoid it at all costs |
| [02:03:12] |
<coderanger> |
Heh, let me get one working first ;-) |
| [02:03:31] |
<coderanger> |
I've actually gone through that because I stole ListTypes for something |
| [02:03:45] |
<alect> |
ah |
| [02:03:55] |
<alect> |
nastiest hack ever i thikn |
| [02:04:04] |
<alect> |
okay, permissions changed |
| [02:04:11] |
<coderanger> |
gratsi :) |
| [02:04:33] |
<coderanger> |
hopefully newhack can be replaced by tracforge shortly ;-) |
| [02:04:48] |
<alect> |
that would be good |
| [02:04:52] |
<alect> |
i wonder how it will scale |
| [02:05:00] |
<coderanger> |
Yeah |
| [02:05:09] |
<alect> |
pity authzwebadminplugin isn't a bit more usable |
| [02:05:25] |
<coderanger> |
feel free to send threatening emails to the author |
| [02:05:34] |
<coderanger> |
some people consider it a hobby |
| [02:05:39] |
<alect> |
heh |
| [02:05:49] |
<alect> |
i might enable it so you can fondle perms |
| [02:06:05] |
<alect> |
some editing is better than none |
| [02:06:40] |
<coderanger> |
Heh |
| [02:09:23] |
* |
sreeram has quit IRC |
| [02:15:20] |
* |
mbroeken has quit IRC |
| [02:31:28] |
<asmodai> |
alect / coderanger / cmlenz : btw, be careful with Lazaridis. He seems to behave on the trac list, but he has a sort of history as a mailinglist troll |
| [02:31:37] |
<alect> |
yeah |
| [02:31:42] |
<alect> |
we have seen his wikipedia page :) |
| [02:31:47] |
<alect> |
he's famous |
| [02:31:52] |
<asmodai> |
alect: Yeah, but I think that's also a bit overdone. |
| [02:32:18] |
<alect> |
i think we're acting on the assumption that he's not a troll until he proves otherwise |
| [02:32:21] |
<alect> |
at least, i am |
| [02:32:23] |
<asmodai> |
*nod* |
| [02:32:30] |
<asmodai> |
That's how I dealt with him on the django list |
| [02:32:43] |
<asmodai> |
'sides, if you write an article on me, who can people believe? |
| [02:33:06] |
<cmlenz> |
didn't they ban him from the django list? |
| [02:33:30] |
<asmodai> |
cmlenz: Not sure. |
| [02:34:20] |
<cmlenz> |
http://groups.google.com/group/comp.lang.python/browse_thread/thread/3e091dcf439b93a1/4dde9af6bfcd5cc6?lnk=gst&q=censorship&rnum=1#4dde9af6bfcd5cc6 |
| [02:36:34] |
<alect> |
hmmm :) |
| [02:36:39] |
<alect> |
not a good sign |
| [02:36:42] |
<asmodai> |
cmlenz: btw, nice name change ;) |
| [02:36:54] |
<alect> |
he surely has a bizarre outlook though |
| [02:36:58] |
<alect> |
asks the strangest questions |
| [02:38:25] |
<asmodai> |
alect: http://schevo.org/lists/archives/schevo-devel/2006-May/000749.html |
| [02:38:36] |
<asmodai> |
alect: Seems it ultimate boils down he wants to sell services. |
| [02:39:25] |
<cmlenz> |
http://groups.google.com/group/turbogears/browse_thread/thread/bd27dcc6b9f7ad3d/68f5f41505ef3074?lnk=gst&q=schevo&rnum=2#68f5f41505ef3074 |
| [02:39:33] |
<asmodai> |
I don't trust this stuff: |
| [02:39:35] |
<asmodai> |
http://audit.lazaridis.com/schevo |
| [02:39:56] |
<asmodai> |
O'Brien says no, yet he claims they took up on his services. I think he's making a virtual portfolio of non-existant entries. |
| [02:41:00] |
* |
asmodai emails Patrick |
| [02:41:54] |
<cmlenz> |
asmodai: did you read his message I just linked to? |
| [02:42:05] |
* |
asmodai checks |
| [02:42:35] |
<asmodai> |
Ah |
| [02:42:56] |
* |
aqeeliz has joined #trac |
| [02:44:29] |
<asmodai> |
so basically: stay polite with the guy and decline all potential offers to commercially help out :) |
| [02:44:40] |
* |
asmodai hides his tendra lists |
| [02:44:52] |
<asmodai> |
But then again, that's C, seems he's targetting Python |
| [02:47:26] |
* |
barlas has quit IRC |
| [02:53:44] |
* |
__ has joined #trac |
| [03:04:42] |
* |
hikozaemon has quit IRC |
| [03:10:32] |
* |
Rica has quit IRC |
| [03:15:18] |
* |
aqeeliz is now known as barlas |
| [03:23:49] |
* |
jvtm has joined #trac |
| [03:23:54] |
* |
tuxipuxi has joined #trac |
| [03:27:24] |
* |
moolight has quit IRC |
| [03:28:13] |
* |
jvtm has quit IRC |
| [03:31:01] |
* |
jvtm has joined #trac |
| [03:35:29] |
* |
peppelorum has quit IRC |
| [03:55:39] |
* |
shawn has quit IRC |
| [03:57:16] |
* |
row has joined #trac |
| [03:58:15] |
<row> |
What is considered best, running trac with mod_python or with cgi? (using apache2)? |
| [03:58:18] |
<row> |
or is there nothing in it? |
| [04:03:07] |
<tuxipuxi> |
with either mod_python or with fastcgi, plain cgi is too slow |
| [04:03:55] |
<row> |
k |
| [04:03:58] |
<row> |
mod_python it is :) |
| [04:04:28] |
* |
shawn__ has quit IRC |
| [04:16:37] |
* |
cmlenz has quit IRC |
| [04:37:30] |
* |
frankg has joined #trac |
| [04:53:17] |
* |
hpnadig has joined #trac |
| [04:54:19] |
* |
prologic_ has joined #trac |
| [04:54:33] |
* |
Rica has joined #trac |
| [04:54:43] |
* |
blinx|off is now known as blinx |
| [04:56:58] |
* |
hpnadig has quit IRC |
| [04:58:34] |
* |
blinx is now known as blinx|off |
| [05:04:49] |
* |
aqeeliz has joined #trac |
| [05:05:19] |
* |
cmlenz has joined #trac |
| [05:05:46] |
* |
barlas has quit IRC |
| [05:07:10] |
* |
mitsuhiko has quit IRC |
| [05:11:11] |
* |
__ has quit IRC |
| [05:17:51] |
* |
a-priori____ has joined #trac |
| [05:22:53] |
<row> |
How can I enable TRAC_ADMIN for ALL projects on a given user? |
| [05:25:09] |
* |
imajes has quit IRC |
| [05:29:22] |
* |
imajes has joined #trac |
| [05:36:21] |
* |
webs has joined #trac |
| [05:36:23] |
<webs> |
Hello. |
| [05:36:45] |
<webs> |
there exists a irc bot for Trac ? |
| [05:38:09] |
* |
aqeeliz has quit IRC |
| [05:38:24] |
* |
a-priori___ has quit IRC |
| [05:40:44] |
* |
barlas has joined #trac |
| [05:42:59] |
* |
MasterC has joined #trac |
| [05:49:12] |
* |
milk-it has joined #trac |
| [05:49:26] |
* |
janhaa has joined #trac |
| [05:52:50] |
* |
imajes has quit IRC |
| [05:52:56] |
<janhaa> |
hello |
| [05:53:32] |
<janhaa> |
i just tried 0.10b1, but i can't make it work. is there a way to go back to 0.9.4 ? |
| [05:56:48] |
<jesterKing> |
did you do a manual install? |
| [05:57:02] |
<janhaa> |
yes |
| [05:57:09] |
<jesterKing> |
I had to copy the templates et all to the proper place |
| [05:57:28] |
<jesterKing> |
I did an upgrade from current stable |
| [05:58:26] |
<janhaa> |
...to make 10b1 work? |
| [05:58:27] |
<jesterKing> |
templates, wiki-default and wiki-macros iirc |
| [05:58:41] |
<jesterKing> |
yah, copy those to whereever they should go to |
| [05:58:57] |
* |
imajes has joined #trac |
| [05:58:59] |
<janhaa> |
ok. i'll have a look |
| [05:59:18] |
<jesterKing> |
there might be more to be copied, don't really remember |
| [05:59:29] |
<janhaa> |
cool :) |
| [05:59:32] |
<janhaa> |
thank oyu |
| [05:59:33] |
<janhaa> |
you |
| [05:59:51] |
<jesterKing> |
don't thank me just yet. First see to it you get it to work :) |
| [06:00:04] |
<janhaa> |
it works. |
| [06:00:58] |
<jesterKing> |
in that case, yw :) |
| [06:01:07] |
<janhaa> |
:) |
| [06:01:13] |
* |
janhaa has quit IRC |
| [06:13:41] |
* |
barlas has quit IRC |
| [06:15:41] |
* |
barlas has joined #trac |
| [06:34:40] |
* |
aqeeliz has joined #trac |
| [06:35:11] |
* |
barlas has quit IRC |
| [06:35:32] |
* |
gsmith has joined #trac |
| [06:38:14] |
<gsmith> |
I would like to do some customization of my ticketing schema (in trac), as well as customization of the submit ticket page |
| [06:38:25] |
<gsmith> |
Simple example: disable or remove the "Assign to field" from the submit screen (as it will be assigned by an admin) |
| [06:38:38] |
<gsmith> |
Am I in the proper place to make such queries? |
| [06:38:47] |
<webs> |
Hmm... I have a problem with "AccountManager" plugin. I have correctly installed the Plugin, and edit the trac.ini, but, it's not works :( |
| [06:47:07] |
* |
peppelorum has joined #trac |
| [06:52:11] |
* |
jesterKing is now known as amino |
| [06:52:15] |
* |
criswe1l has joined #trac |
| [06:54:15] |
* |
danbeck has joined #trac |
| [06:56:13] |
* |
polarfox has joined #trac |
| [07:01:50] |
* |
blinx|off is now known as blinx |
| [07:08:08] |
* |
gsmith has left #trac |
| [07:13:18] |
<cmlenz> |
edgewall.org down for anyone else? |
| [07:13:49] |
<row> |
nope |
| [07:13:50] |
<row> |
fine here |
| [07:15:11] |
<cmlenz> |
looks like a colt f*kup |
| [07:15:29] |
* |
converter has joined #trac |
| [07:17:59] |
* |
agile has quit IRC |
| [07:19:01] |
* |
a-priori_____ has joined #trac |
| [07:19:20] |
* |
Hydra has quit IRC |
| [07:19:57] |
* |
barlas has joined #trac |
| [07:20:58] |
* |
aqeeliz has quit IRC |
| [07:23:42] |
* |
a-priori____ has quit IRC |
| [07:26:53] |
* |
Hydra has joined #trac |
| [07:29:59] |
* |
xjjk has joined #trac |
| [07:54:04] |
* |
__ has joined #trac |
| [07:57:11] |
* |
agile has joined #trac |
| [08:03:57] |
* |
MasterC has quit IRC |
| [08:08:02] |
* |
nuonguy has left #trac |
| [08:11:21] |
* |
Rica has quit IRC |
| [08:16:05] |
* |
jtoy has joined #trac |
| [08:16:25] |
<jtoy> |
is there any reason why file uploads to trac would keep timing out? |
| [08:19:56] |
* |
lisppaste5 has quit IRC |
| [08:25:50] |
* |
lisppaste5 has joined #trac |
| [08:28:05] |
<row> |
anyone know how to list tables in postgresql? |
| [08:30:05] |
<row> |
h |
| [08:30:06] |
<row> |
ah got it |
| [08:37:57] |
* |
barlas has quit IRC |
| [08:40:56] |
<row> |
trac needs global persmissions really :( |
| [08:41:05] |
<row> |
and project level ones |
| [08:44:16] |
<tigger^> |
row: what would project level mean? |
| [08:44:30] |
<tigger^> |
row: you mean a collection of repos? |
| [08:44:32] |
<tigger^> |
+covering |
| [08:57:56] |
* |
neddy has quit IRC |
| [08:57:57] |
* |
xjjk has quit IRC |
| [09:02:56] |
* |
xjjk has joined #trac |
| [09:03:28] |
<pacopablo> |
trac has project level permissions :) |
| [09:05:42] |
<row> |
I know |
| [09:05:45] |
<row> |
but not global |
| [09:05:51] |
<row> |
tigger^ yes |
| [09:06:11] |
<row> |
I have a global password file but still a bit lame I can't set a global admin to all repos |
| [09:07:22] |
* |
neddy has joined #trac |
| [09:10:05] |
* |
stretch has joined #trac |
| [09:23:02] |
* |
klasstek has joined #trac |
| [09:26:11] |
<blinx> |
hi |
| [09:26:40] |
* |
xjjk has quit IRC |
| [09:27:01] |
<blinx> |
how can i delete a site in a trac wiki? |
| [09:27:16] |
<pacopablo> |
what do you mean by site? |
| [09:27:19] |
<pacopablo> |
a wiki page? |
| [09:27:24] |
<pacopablo> |
or a whole trac instance ? |
| [09:27:38] |
<blinx> |
one page |
| [09:28:07] |
<blinx> |
i am a newbie! |
| [09:28:25] |
<pacopablo> |
if you have WIKI_DELETE privs, then there should be a "Delete this Page" button |
| [09:28:48] |
<pacopablo> |
if you don't see the delete button at the bottom of the page, you don't have sufficient permissions |
| [09:29:24] |
<blinx> |
pacopablo: ok, so i need an account? |
| [09:29:42] |
<pacopablo> |
not necessarily |
| [09:29:58] |
<pacopablo> |
though if you don't have an account, then the anonymous user needs to have WIKI_DELETE permissions |
| [09:30:17] |
<pacopablo> |
which is probably not a good idea, so, in that sense, yes, you need an account |
| [09:37:43] |
* |
jcw9 has quit IRC |
| [09:43:00] |
* |
ged has quit IRC |
| [09:56:46] |
<row> |
Is there a way to change default permissions that get created by initenv? |
| [10:00:37] |
* |
MarkSta has joined #trac |
| [10:05:00] |
* |
Hershel has joined #trac |
| [10:06:16] |
<Hershel> |
The trac wiki mentions WYSIWYG editors, but I don't see anything clear. For my 0.1 trac is there a plug or a config I can set to get some sort of WYSIWYG editor? |
| [10:07:03] |
* |
MarkSta has left #trac |
| [10:11:10] |
<pacopablo> |
Mce plugin on trac-hacks.org |
| [10:13:43] |
<Hershel> |
Great. Thanks. |
| [10:14:19] |
<Hershel> |
One other issue I have is that even though I have TRAC_ADMIN rights, my RSS feed (with all options checked) seems only to send me feeds of changes I make. When others make edits I dont' see them. |
| [10:21:47] |
* |
xjjk has joined #trac |
| [10:29:05] |
* |
cmlenz has quit IRC |
| [10:37:32] |
* |
jpatota has quit IRC |
| [10:43:00] |
<Hershel> |
RE: Mce plugin on trac-hacks.org, I have in /usr/share/trac/htdocs/ a dir called tinymce with tinymce code there, including the CSS file from the plugin. In trac.ini I have: |
| [10:43:01] |
<Hershel> |
[components]trac.wiki.web_ui.WikiModule= disabled |
| [10:43:14] |
<Hershel> |
[trac] |
| [10:43:20] |
<Hershel> |
default_handler = TinyMceWikiPlugin |
| [10:43:24] |
<Hershel> |
[components]webadmin.* = enableddefault_handler = TinyMceWikiPlugintrac.wiki.web_ui.WikiModule= disabled |
| [10:44:01] |
<Hershel> |
Oh, whe I installed I got this: |
| [10:44:02] |
<Hershel> |
# python setup.py installrunning install/usr/lib/python2.3/site-packages/setuptools-0.6c2-py2.3.egg/setuptools/command/easy_install.py:174: UserWarning: Unbuilt egg for tinymcewiki [unknown version] (/home/trac/nemo2/tiny_mce) self.local_index = Environment(self.shadow_path+sys.path) |
| [10:44:24] |
<Hershel> |
but in the end it said: |
| [10:44:25] |
<Hershel> |
Installed /usr/lib/python2.3/site-packages/tinymcewiki-0.1-py2.3.eggProcessing dependencies for tinymcewiki==0.1 |
| [10:44:45] |
<Hershel> |
I restarted httpd and when I edit a wiki page I see: No handler matched request to /wiki/xxx |
| [10:45:18] |
<Hershel> |
any ideas? |
| [11:01:54] |
* |
cmlenz has joined #trac |
| [11:05:32] |
<coderanger> |
row: That is in the works |
| [11:05:52] |
* |
neddy has left #trac |
| [11:11:55] |
* |
kousuke has quit IRC |
| [11:12:49] |
* |
chandlerc has joined #trac |
| [11:14:09] |
* |
neddy has joined #trac |
| [11:14:23] |
<row> |
coderanger: cool |
| [11:14:43] |
<coderanger> |
row: If you feel brave, read through the tracforge source |
| [11:15:01] |
<coderanger> |
central perms and membership is mostly done |
| [11:16:04] |
<row> |
I rather not mess with the code as at the moment it will update via apt nicely |
| [11:16:11] |
<row> |
if I alter code I need to manage updates :P |
| [11:16:19] |
* |
row is a lazy git :P |
| [11:16:46] |
<coderanger> |
No alteration needed |
| [11:16:50] |
<coderanger> |
Its a plugin |
| [11:17:11] |
<row> |
oh |
| [11:17:15] |
<row> |
cool |
| [11:19:09] |
* |
blinx has left #trac |
| [11:20:54] |
<omry> |
how can I read a parameter from trac.ini? |
| [11:21:16] |
<coderanger> |
0.9 or 0.10? |
| [11:21:34] |
* |
joshmoore is now known as joshmoore_ |
| [11:21:37] |
<row> |
does your plugin with with 0.9.6 coderanger? |
| [11:21:39] |
* |
xjjk-T42p has joined #trac |
| [11:21:42] |
<coderanger> |
row: no |
| [11:21:52] |
* |
joshmoore_ is now known as joshmoore |
| [11:22:11] |
<row> |
ah |
| [11:22:12] |
<coderanger> |
row: By the time its finsihed 0.10 should be out, and it was easier to just start with the new APIs |
| [11:22:18] |
<pacopablo> |
omry: env.config.get(section, option, default) |
| [11:22:47] |
<omry> |
pacopablo, thanks. |
| [11:22:56] |
<row> |
coderanger: you might be able to help me anyway, where can I edit the default perms that get populated into db when you create a env? |
| [11:23:27] |
<coderanger> |
But you probably shouldnt |
| [11:23:38] |
<row> |
I should not? |
| [11:23:39] |
<coderanger> |
make a wrapper script about trac-admin initenv |
| [11:23:46] |
<row> |
suppose |
| [11:24:06] |
<coderanger> |
er,/usr/lib/python2.?/site-packages/trac/db_default.py |
| [11:25:06] |
<row> |
ah perfect |
| [11:25:16] |
* |
row dislikes default milestones stuff too |
| [11:25:19] |
<row> |
and versions etc |
| [11:26:53] |
<coderanger> |
yeah |
| [11:27:33] |
* |
row removed all of that |
| [11:27:40] |
<row> |
+ adds me as admin now :) |
| [11:27:49] |
<row> |
good enough for the moment |
| [11:29:16] |
<omry> |
pacopablo, is default optional? |
| [11:29:22] |
<pacopablo> |
yes |
| [11:30:08] |
<omry> |
is it acceptable to throw an exception if my parameters is missing? |
| [11:30:17] |
* |
Hershel has left #trac |
| [11:30:36] |
<coderanger> |
from what? |
| [11:30:42] |
<omry> |
from the plugin constructor |
| [11:30:48] |
<omry> |
__init__ |
| [11:30:55] |
<omry> |
__init__(self) |
| [11:30:59] |
<coderanger> |
that doesnt get any parameters |
| [11:31:01] |
<coderanger> |
just self |
| [11:31:05] |
<omry> |
yes |
| [11:32:01] |
<coderanger> |
just beware that it can leave the whole trac unusable |
| [11:32:16] |
<coderanger> |
and that you can get some really cryptic error message depending on where things get inited |
| [11:32:27] |
<omry> |
mhm |
| [11:32:37] |
<omry> |
how do I fail my plugin gracefuly than? |
| [11:33:08] |
<coderanger> |
Just have it either do nothing, or raise an error during the request |
| [11:34:08] |
<omry> |
coderanger, thats too nasty.. |
| [11:34:11] |
* |
joshmoore has quit IRC |
| [11:34:29] |
<omry> |
I think its a good idea to allow plugins to throw an exception in their __init__ to indicate that they failed to initialize |
| [11:34:30] |
<coderanger> |
omry: You don't want to be storing the value anyway |
| [11:34:36] |
<omry> |
why not? |
| [11:34:42] |
<coderanger> |
omry: Its allowed, just a bad idea |
| [11:35:08] |
<coderanger> |
Because plugins are initialized once when using anything other than CGI |
| [11:35:11] |
* |
xjjk has quit IRC |
| [11:35:16] |
<coderanger> |
Trac rereads the config as needed |
| [11:35:41] |
<coderanger> |
so if someone changes the config and you have the value cached, your plugin wont see it until the server getrs restarted |
| [11:36:17] |
<omry> |
I see. |
| [11:37:20] |
<omry> |
my plugin runs every requerst hit, I want to notify the user that its not working if the parameter is missing |
| [11:37:25] |
<omry> |
is it possible? |
| [11:37:45] |
<row> |
how busy is the Trac-dev mailing list? |
| [11:38:06] |
<cmlenz> |
pretty quiet normally |
| [11:38:10] |
<row> |
k |
| [11:38:25] |
<coderanger> |
in the req-filter, raise an error is the setting is None (i.e. not there) |
| [11:39:29] |
<omry> |
coderanger, wont that fail the request? |
| [11:39:45] |
<coderanger> |
yes |
| [11:39:58] |
<coderanger> |
you just want it to do nothign but tell them? |
| [11:40:26] |
<omry> |
coderanger, possibly maybe inject an error message to the html? |
| [11:40:31] |
<omry> |
s/possibly/ |
| [11:40:55] |
<coderanger> |
hrmm, thats hard with CS, though with Genshi it should be very easy |
| [11:41:12] |
<coderanger> |
you could inject some HTML into hdf['trac.footer'] |
| [11:41:33] |
<coderanger> |
make it an abs positioned div with the error |
| [11:44:16] |
* |
klasstek_ has joined #trac |
| [11:44:40] |
* |
nextime has quit IRC |
| [11:44:41] |
<omry> |
ah. think I`ll pass that for now. |
| [11:45:38] |
<omry> |
when the admin interface will be integrated with the mainstream trac, it will be a good idea to allow (and encourage) plugins to indicate failure by throwing an exception with a message. the message can be displayed next to the plugin name in the admin interface, |
| [11:46:19] |
* |
nextime has joined #trac |
| [11:48:45] |
<pacopablo> |
you can raise an exception with a message |
| [11:48:56] |
<pacopablo> |
just raise TracError('error message') |
| [11:49:34] |
<omry> |
I am talking about the infra structure. plugins can fail to start and it should be handled, and preferably displayed to the user in the admin section. |
| [11:50:05] |
<pacopablo> |
ahh |
| [11:51:10] |
<omry> |
I know the admin interface is not a part of the core now, so it makes no sense to refer to it. |
| [11:51:42] |
<omry> |
maybe there should be some data model that will hold information about the failed plugins for it to use |
| [11:59:51] |
* |
chandlerc has quit IRC |
| [12:00:19] |
* |
klasstek has quit IRC |
| [12:05:00] |
* |
hatredx has joined #trac |
| [12:05:27] |
* |
hatredx has left #trac |
| [12:09:45] |
<matt_good> |
omry: what reasons have you encountered that plugins fail to load? |
| [12:10:10] |
<matt_good> |
trac should record errors loading plugins in the log |
| [12:10:15] |
<omry> |
matt_good, I am writing a small plugin now. it can fail if there is a missing essential parameter |
| [12:10:27] |
<coderanger> |
matt_good: Lack of some needed trac.ini directive |
| [12:11:17] |
<matt_good> |
if it's missing the plugin completely fails to load, or it just doesn't work until you add the setting? |
| [12:11:49] |
<jtoy> |
is there any reason why file uploads to trac would keep timing out? |
| [12:11:56] |
<omry> |
matt_good, semantics |
| [12:11:58] |
<jtoy> |
everything in tac works fine except for upload files |
| [12:12:01] |
<omry> |
it can't work |
| [12:12:09] |
<omry> |
I want to let the system know about it if I can |
| [12:12:24] |
<omry |