| [00:10:15] |
* |
lakin has quit IRC |
| [00:10:40] |
* |
lakin has joined #pocoo |
| [00:19:23] |
<_P_> |
hi |
| [00:20:26] |
<_P_> |
someone can hel me to write a rewriterule for changing something like to *.domain.com in *.domain.it for all subdomain? |
| [00:20:28] |
<_P_> |
*help |
| [00:30:46] |
* |
zerok has quit IRC |
| [00:32:42] |
<moebius_> |
_P_: I believe you cannot apply rewriterule patterns in the host name (at least when using apache) |
| [00:34:06] |
<_P_> |
ah |
| [00:34:37] |
<_P_> |
no? |
| [00:35:27] |
* |
lakin has quit IRC |
| [00:35:58] |
<_P_> |
i need that for example regard.forpassion.it goes to regard.forpassion.net because the second is up the first not |
| [00:39:37] |
<maze> |
_P_, you can use a little bit of python in a rewritemap |
| [01:04:45] |
* |
james_027 has quit IRC |
| [01:33:56] |
* |
davidcramer has joined #pocoo |
| [01:58:59] |
<thatch> |
_P_: I think it's possible using a standard RewriteCond on HTTP_HOST |
| [01:59:20] |
<thatch> |
a bit similar to the no-www example at http://no-www.org/ (which I have used successfully) |
| [01:59:34] |
<_P_> |
thatch: thanks |
| [02:01:17] |
<_P_> |
i found a lot of examples to rewrite www or not |
| [02:01:43] |
<_P_> |
but i have to redirect all *.forpassion.it to *.forpassion.net |
| [02:01:57] |
<_P_> |
with the same subdomain |
| [02:04:49] |
* |
aconbere_ has quit IRC |
| [02:16:51] |
* |
izibi has quit IRC |
| [02:18:13] |
* |
jpcw2002 has quit IRC |
| [02:23:31] |
<thatch> |
_P_: yeah, but it's the same problem, you match ^(.*).it$ and redirect to http://%1.com/$1 |
| [02:24:48] |
<rocky> |
hrm, textpress blows up when a pingback times out apparently |
| [02:25:00] |
* |
matt_good has quit IRC |
| [02:26:07] |
* |
maix has quit IRC |
| [02:27:12] |
* |
michelp has quit IRC |
| [03:38:13] |
* |
maicki has joined #pocoo |
| [03:43:09] |
* |
delroth has quit IRC |
| [04:34:49] |
* |
matt_good has joined #pocoo |
| [04:48:11] |
* |
aconbere has quit IRC |
| [04:58:38] |
* |
maicki_ has joined #pocoo |
| [05:00:24] |
* |
maicki_ has quit IRC |
| [05:00:32] |
* |
maicki_ has joined #pocoo |
| [05:02:41] |
<s0undt3ch> |
matt_good: solved your issue with my plugin? |
| [05:02:50] |
<matt_good> |
s0undt3ch: no |
| [05:03:07] |
<s0undt3ch> |
matt_good: using latest TP source? |
| [05:03:13] |
<matt_good> |
yeah |
| [05:03:17] |
<matt_good> |
just installed it last night |
| [05:03:27] |
<matt_good> |
I installed the plugin through the admin page, but I don't see anywhere to configure it |
| [05:03:34] |
<s0undt3ch> |
matt_good: well, I havent tested my plug with latest source code |
| [05:03:41] |
<s0undt3ch> |
matt_good: go to the widgets tab |
| [05:03:57] |
<matt_good> |
where should that be? |
| [05:04:00] |
<matt_good> |
I didn't see one |
| [05:04:05] |
<s0undt3ch> |
admin |
| [05:04:10] |
<s0undt3ch> |
then options |
| [05:04:22] |
<s0undt3ch> |
then you should see a widgets "button" |
| [05:04:30] |
<matt_good> |
ok, it's not there |
| [05:04:38] |
<s0undt3ch> |
ah :) |
| [05:04:41] |
<matt_good> |
I'll poke at the plugin a bit |
| [05:04:45] |
<s0undt3ch> |
wait a min |
| [05:05:28] |
<s0undt3ch> |
I'll update my local install |
| [05:12:19] |
<s0undt3ch> |
errr, not loading here :\ |
| [05:14:46] |
* |
maicki has quit IRC |
| [05:17:22] |
<s0undt3ch> |
what's with the fish? |
| [05:19:11] |
<empty> |
what fish? |
| [05:20:32] |
<s0undt3ch> |
eric the fish, never mind :) |
| [05:20:48] |
<s0undt3ch> |
where is the widget's link now? |
| [05:23:20] |
<empty> |
speaking of fish. I went out to dinner with my lesbian friend. She had the fish. |
| [05:23:22] |
<empty> |
How ironic. |
| [05:42:07] |
* |
michelp has joined #pocoo |
| [05:49:03] |
* |
michelp has quit IRC |
| [05:49:52] |
<s0undt3ch> |
matt_good: seems that the widget system is being re-worked, can't seem to find it |
| [05:50:06] |
<matt_good> |
ah |
| [05:51:17] |
<matt_good> |
huh, what's w/ the different comment styles in TP? |
| [05:51:24] |
<matt_good> |
# vs. #! vs. #: |
| [05:54:11] |
* |
michelp has joined #pocoo |
| [05:55:33] |
<s0undt3ch> |
matt_good: #: translation comments, #! dunno |
| [05:55:41] |
<s0undt3ch> |
:) |
| [06:07:03] |
* |
brett has joined #pocoo |
| [06:07:13] |
<brett> |
Hey, anybody here? |
| [06:20:50] |
* |
brett has quit IRC |
| [06:25:24] |
* |
Tik-Tok has quit IRC |
| [06:27:01] |
* |
brett has joined #pocoo |
| [06:34:10] |
* |
brett has quit IRC |
| [06:46:59] |
* |
davidcramer_ has joined #pocoo |
| [06:54:33] |
* |
davidcramer has quit IRC |
| [06:55:25] |
* |
brett has joined #pocoo |
| [06:58:08] |
* |
davidcramer has joined #pocoo |
| [06:59:12] |
* |
davidcramer has quit IRC |
| [07:05:20] |
* |
robart has joined #pocoo |
| [07:05:27] |
* |
robart has left #pocoo |
| [07:05:36] |
* |
matt_good has quit IRC |
| [07:13:30] |
* |
davidcramer_ has quit IRC |
| [08:11:34] |
* |
luks has quit IRC |
| [08:12:15] |
* |
luks has joined #pocoo |
| [08:15:36] |
* |
izibi has joined #pocoo |
| [08:16:13] |
* |
davidcramer has joined #pocoo |
| [08:29:51] |
* |
pagenoare has quit IRC |
| [08:41:02] |
* |
Tik-Tok has joined #pocoo |
| [09:09:03] |
<asmodai> |
wow |
| [09:09:10] |
<asmodai> |
cloud break up in DE too? |
| [09:10:01] |
<asmodai> |
looks misty here due to the amount of rain that's falling :| |
| [09:10:48] |
* |
jpcw2002 has joined #pocoo |
| [09:30:57] |
* |
pagenoare has joined #pocoo |
| [09:54:26] |
* |
mikeyumatov has joined #pocoo |
| [10:00:22] |
* |
pagenoare has left #pocoo |
| [10:17:12] |
* |
moebius_ has quit IRC |
| [10:51:19] |
<birkenfeld> |
asmodai: bright sunshine here |
| [10:58:42] |
* |
davidcramer has quit IRC |
| [11:01:30] |
<asmodai> |
birkenfeld: most of the storm passed, but still grey, windy and sometimes rainy |
| [11:12:31] |
<CIA-41> |
python-doctools: georg.brandl * r65566 /doctools/branches/0.4.x/doc/markup/inline.rst: Clarification for the ref role. |
| [11:12:31] |
<CIA-41> |
python-doctools: georg.brandl * r65567 /doctools/branches/0.4.x/ (sphinx/environment.py CHANGES): Rebuild everything if extensions change. |
| [11:19:20] |
<CIA-41> |
python-doctools: georg.brandl * r65568 /doctools/trunk/ (4 files in 2 dirs): Allow nonwrapped displaymath. |
| [11:35:41] |
* |
rafael has joined #pocoo |
| [11:43:28] |
* |
rafael_ has joined #pocoo |
| [12:04:49] |
* |
rafael has quit IRC |
| [12:07:48] |
* |
rafael has joined #pocoo |
| [12:27:42] |
* |
rafael_ has quit IRC |
| [12:29:12] |
* |
zero-one has joined #pocoo |
| [12:32:05] |
<zero-one> |
hi |
| [12:32:10] |
<zero-one> |
and i still dont get it ... import_string from werkzeug .. when i have a project myproject thre is a folder in it called controllers and there is a file called basic.py and in the file is a function called index then the call import_string("myproject.controllers.basic.index") should work or not? |
| [12:32:42] |
<zero-one> |
i allways get No module named myproject.controllers.basic |
| [12:32:57] |
<hoffie> |
zero-one: missed the __init__.py file? :) |
| [12:33:18] |
<zero-one> |
in the controllers dir? |
| [12:33:22] |
<hoffie> |
yep |
| [12:33:30] |
<zero-one> |
seems so .. lets fix it ^^ |
| [12:33:38] |
<hoffie> |
hm and myproject needs it as well |
| [12:34:07] |
<zero-one> |
there is one in myproject |
| [12:34:13] |
<zero-one> |
but not in controllers |
| [12:34:29] |
<hoffie> |
well, create one :) |
| [12:41:43] |
<zero-one> |
hoffie: ok .. now i get an other error seems to work ^^ ... can you tell me why there have to be one and in directories like utils not? |
| [12:45:33] |
* |
rafael has quit IRC |
| [12:50:13] |
<prencher> |
zero-one - python treats folders with __init__.py files in them as packages, which is what lets you import them |
| [12:50:41] |
<prencher> |
it also runs that __init__.py on import, so you can have package initialisation in there too (hence the name) |
| [12:50:50] |
<zero-one> |
prencher: ah ok ... |
| [14:10:40] |
* |
zero-one has quit IRC |
| [15:03:31] |
<prencher> |
has mitsuhiko said when he will be back? |
| [15:04:28] |
* |
zero-one has joined #pocoo |
| [15:06:20] |
<apollo13> |
prencher: soon ;) next week |
| [15:12:01] |
<empty> |
who let him have a vacation |
| [15:12:24] |
<apollo13> |
pff he is phoning me all the time.... |
| [15:41:47] |
* |
EnTeQuAk has joined #pocoo |
| [15:46:42] |
* |
maicki has joined #pocoo |
| [15:59:40] |
* |
zero-one has quit IRC |
| [16:02:31] |
* |
Kaelten has joined #pocoo |
| [16:37:51] |
* |
rafael has joined #pocoo |
| [16:48:19] |
* |
lakin has joined #pocoo |
| [17:14:42] |
* |
asmodai_ has joined #Pocoo |
| [17:19:50] |
* |
zerok has joined #pocoo |
| [17:19:52] |
<zerok> |
hi :) |
| [17:22:32] |
* |
asmodai has quit IRC |
| [17:22:32] |
* |
asmodai_ is now known as asmodai |
| [17:36:35] |
* |
izibi has quit IRC |
| [17:36:57] |
<birkenfeld> |
apollo13: why? |
| [17:36:59] |
<birkenfeld> |
hi zerok |
| [17:37:06] |
<apollo13> |
birkenfeld: why what? |
| [17:37:19] |
<birkenfeld> |
<apollo13> pff he is phoning me all the time.... |
| [17:37:37] |
<apollo13> |
birkenfeld: this and that... |
| [17:38:00] |
<apollo13> |
about inyoka the pocoo hg repo.... |
| [17:38:16] |
<birkenfeld> |
hmm... vacation should be vacation :) |
| [17:38:35] |
* |
rafael has quit IRC |
| [17:39:30] |
<apollo13> |
birkenfeld: not for him apparently |
| [17:40:09] |
<birkenfeld> |
zerok: how's the sphinx i18n project going? |
| [17:40:53] |
<zerok> |
birkenfeld, so far i've added a gettext loader that supports multiple locale dirs and am now working on at least providing a german locale for the layout.html |
| [17:41:08] |
<birkenfeld> |
great |
| [17:41:55] |
<zerok> |
birkenfeld, sadly nothing really great since i'm still quite new to the whole i18n thing, but it should at least mark a small first step ;) |
| [17:45:34] |
<zerok> |
something that would probably be kind of nice would be an addition to the makefile to automatically extract the messages from the currently specified templates, checks the currently available catalog what is not yet defined and create an addon .po file, but i doubt i will find the time for something like this :-( |
| [17:46:01] |
<zerok> |
when i'm done with at least the layout.html, should i send you the patch? |
| [17:46:08] |
* |
rocky is now known as rocky|away |
| [17:46:12] |
<birkenfeld> |
zerok: +1 |
| [17:47:39] |
<zerok> |
k, hopefully somewhen tonight then ;) |
| [17:55:35] |
* |
zerok has quit IRC |
| [18:03:21] |
* |
izibi has joined #pocoo |
| [18:18:35] |
* |
Tik-Tok has joined #pocoo |
| [18:27:45] |
* |
milestraveled has joined #pocoo |
| [18:28:55] |
<milestraveled> |
we find werkzeug/sqlalchemy/jinja to be a great clean stack for us to use but are stuck on several issues: |
| [18:29:54] |
<milestraveled> |
1> how to send 2 parameters to a view (can do it with adding them to a dict and sending the one dict but thats a pain |
| [18:30:54] |
<milestraveled> |
2) don't know what or how to add a middleware lib to do login/session management |
| [18:31:16] |
<milestraveled> |
3) not sure how to deploy to our hosted server (webfaction) |
| [18:31:27] |
<milestraveled> |
any help greatly appreciated |
| [18:32:07] |
<tux21b> |
milestraveled, 1> create a url with more than 1 placeholder. all the variables are redirected to the view |
| [18:33:11] |
<aa_> |
milestraveled: if you like that stack, you might be interested in glashammer, removes some of your boilerplate |
| [18:33:25] |
<milestraveled> |
tux21b: hmmm we got stuck trying to do that - can you show example? |
| [18:33:35] |
<tux21b> |
2) look at the contrib module |
| [18:34:07] |
<milestraveled> |
aa: not familiar with glashammer but will search for it |
| [18:34:15] |
<aa_> |
milestraveled: it's new |
| [18:35:39] |
<tux21b> |
milestraveled, search in the tutorial (http://werkzeug.pocoo.org/documentation/tutorial/ ) for @expose('/display/<uid>') |
| [18:36:18] |
<milestraveled> |
aa: okay - will look - got to run out now but will check back later - yes, we have found this stack to be the nicest framework and we have tried most |
| [18:36:29] |
<tux21b> |
and now imagine that url with two parameters (e.g. /display/<uid>/<othervar>/) and a view like display(request, uid, othervar) |
| [18:37:45] |
<milestraveled> |
tux21b: oh thks (we tried some but missed the /<> ) |
| [18:38:03] |
* |
milestraveled has quit IRC |
| [18:38:55] |
<tux21b> |
3) and there are lots of possibilities for the deployment. e.g. mod_wsgi or fcgi |
| [19:01:12] |
* |
michelp has quit IRC |
| [19:03:34] |
* |
james_027 has joined #pocoo |
| [19:04:47] |
* |
zerok has joined #pocoo |
| [19:04:59] |
* |
rocky|away is now known as rocky |
| [19:45:41] |
* |
M3ntor5 has joined #pocoo |
| [19:49:33] |
<zerok> |
rather naive i guess, but: why does sphinx use jinja1 instead of jinja2? |
| [19:49:58] |
* |
michelp has joined #pocoo |
| [19:54:19] |
<birkenfeld> |
zerok: because it was there quite a time before jinja2 was released |
| [19:54:30] |
<zerok> |
ah ok |
| [19:54:50] |
* |
mikeyumatov has quit IRC |
| [20:05:41] |
<zerok> |
ok, the babel-support for jinja i integrated is probably a big ugly hack ... but it works :P |
| [20:06:40] |
<zerok> |
http://paste.pocoo.org/show/81521/ :-/ |
| [20:06:48] |
<CIA-41> |
python-doctools: georg.brandl * r65575 /doctools/trunk/sphinx/templates/search.html: Fix script location. |
| [20:07:24] |
<birkenfeld> |
so you're using babel? |
| [20:07:57] |
<zerok> |
birkenfeld, just to generate the po files. i'm too lazy for manually extracting the strings again and again |
| [20:08:05] |
<zerok> |
is this a problem? |
| [20:09:36] |
<birkenfeld> |
nope, in fact I'd wanted to try it out myself |
| [20:09:44] |
<zerok> |
none of the code requires babel, so i can just send you the patch without the cha... ok ;) |
| [20:10:09] |
<zerok> |
same here ;-) heard nice things about it, but never actually had a project that used setuptools before ;) |
| [20:32:21] |
<CIA-41> |
python-doctools: georg.brandl * r65576 /doctools/trunk/ (CHANGES sphinx/directives/other.py TODO): Add glossary entries to the index. Update TODO. |
| [20:37:50] |
<CIA-41> |
python-doctools: georg.brandl * r65577 /doctools/trunk/sphinx/templates/ (genindex-single.html genindex.html): Use numbers instead of [Link] in duplicate index entries. |
| [20:39:25] |
<birkenfeld> |
asmodai: now it starts raining |
| [20:39:47] |
<zerok> |
gach, just went over the genindex-single.html ^_^ |
| [20:47:07] |
<CIA-41> |
python-doctools: georg.brandl * r65579 /doctools/trunk/sphinx/ (4 files in 3 dirs): Link to master doc in TOC heading and logo. |
| [20:55:13] |
* |
maicki has quit IRC |
| [21:01:55] |
* |
izibi_ has joined #pocoo |
| [21:02:36] |
* |
izibi has quit IRC |
| [21:05:39] |
* |
milestraveled has joined #pocoo |
| [21:06:54] |
* |
james_027_ has joined #pocoo |
| [21:07:03] |
* |
milestraveled has quit IRC |
| [21:09:05] |
* |
james_027__ has joined #pocoo |
| [21:09:37] |
* |
milestraveled has joined #pocoo |
| [21:11:39] |
<milestraveled> |
if I'm using irssi - is there a way I can see the posts for the last few hours if I didn't set a log |
| [21:11:49] |
* |
james_027___ has joined #pocoo |
| [21:12:10] |
<birkenfeld> |
milestraveled: specifically for #pocoo, there are logs on the website |
| [21:12:20] |
<milestraveled> |
thks |
| [21:13:15] |
* |
james_027____ has joined #pocoo |
| [21:13:20] |
<birkenfeld> |
http://dev.pocoo.org/projects/pocoo/irclogs/2008/08/07 |
| [21:13:20] |
* |
james_027____ has quit IRC |
| [21:23:25] |
* |
james_027 has quit IRC |
| [21:25:56] |
* |
james_027_ has quit IRC |
| [21:28:03] |
<ivan> |
did whoever was trying to do django+jinja2 get it working right? |
| [21:28:09] |
<ivan> |
with the proper exceptions? |
| [21:31:02] |
* |
james_027___ has quit IRC |
| [21:35:25] |
<milestraveled> |
we checked out glashammer but to be honest, find it simpler to just use werkzeug as per shorty tutorial example. we're not wsgi experts and don't understand all the calls in manage.py and application.py but don't need to once they are set up and working. We've got most things working well on a pretty complicated web app including svg rendering - just need to figure out some login/session middleware stuff but will check out some of the |
| [21:39:38] |
* |
james_027__ has quit IRC |
| [21:41:00] |
* |
EnTeQuAk has quit IRC |
| [21:41:46] |
<tux21b> |
milestraveled, in werkzeug.contrib is a session middleware. you can wrap it around your app to get session support |
| [21:42:33] |
* |
lakin has quit IRC |
| [21:42:51] |
* |
lakin_ has joined #pocoo |
| [21:45:57] |
* |
EnTeQuAk has joined #pocoo |
| [21:50:18] |
<milestraveled> |
tux21b: thks - we'll play with that - then maybe back with any qusetions. Also will have to see what webfaction supports in terms of fastcgi... - they're set up to run django (they like python apps), rails, etc but have ssh capabilities to our space so we can load in stuff. |
| [21:51:28] |
<tux21b> |
if you can setup django, you can surely setup werkzeug too |
| [21:53:18] |
<milestraveled> |
okay - we'll just have to play with it - back tomorrow with success or failures |
| [21:54:31] |
* |
milestraveled has quit IRC |
| [21:55:19] |
* |
EnTeQuAk has quit IRC |
| [21:56:13] |
* |
lakin_ has quit IRC |
| [21:57:03] |
* |
lakin_ has joined #pocoo |
| [22:13:12] |
* |
jpcw2002 has quit IRC |
| [22:20:57] |
* |
jpcw2002 has joined #pocoo |
| [22:22:21] |
* |
jpcw2002 has quit IRC |
| [22:24:48] |
* |
jpcw2002 has joined #pocoo |
| [22:28:19] |
* |
izibi_ is now known as izibi |
| [22:41:08] |
<Kaelten> |
ivan: I have jinja2 working properly with django |
| [22:41:43] |
<Kaelten> |
still have a few bugs for mitso though |
| [22:47:27] |
* |
zerok declares sphinx.quickstart.MASTER_FILE out of scope for i18n and continues his hunt for missing _()s |
| [22:47:27] |
<zerok> |
;-) |
| [22:48:19] |
<prencher> |
Kaelten - define what you mean by 'working properly'? |
| [22:48:37] |
<prencher> |
are you importing all the filters/tags or something? |
| [22:51:20] |
<Kaelten> |
prencher: not all, but its easy to add more |
| [22:51:31] |
<Kaelten> |
its based on the code I contributed for jinja1's contrib module |
| [22:51:41] |
<Kaelten> |
which I discovered was buggy when I started working on this one. |
| [22:54:02] |
<prencher> |
Kaelten - fair enough, just worried as other people have gone and done all sorts of fancy scary crap when all it takes is a tiny env definition and a makeshift render_to_response |
| [22:54:16] |
<Kaelten> |
lol |
| [22:54:24] |
<Kaelten> |
I'll pastie my version |
| [22:54:41] |
<Kaelten> |
let me clean some of my custom stuff out of it |
| [22:56:42] |
<Kaelten> |
prencher: http://pastie.org/private/kccyfkaziru0cuer87aha |
| [22:57:15] |
<Kaelten> |
could of things I'd do differently than whats pasted since my custom code was stripped out |
| [22:57:26] |
<birkenfeld> |
zerok: only things visible in the resulting docs should be translated |
| [22:57:30] |
<Kaelten> |
but I think that'd be a functional chunk of code |
| [22:57:35] |
<birkenfeld> |
the program itself will always be english |
| [22:57:41] |
<birkenfeld> |
and the warnings, etc. |
| [22:58:06] |
<Kaelten> |
and I haven't actually tested the inclusions |
| [22:58:08] |
<Kaelten> |
those might not work |
| [22:58:19] |
<zerok> |
birkenfeld, jupp, master_file is a borderline-case though since it's used for the index.txt |
| [22:58:28] |
<birkenfeld> |
ah, I see |
| [22:58:44] |
<zerok> |
required some grin'ing to actually find it ;) |
| [22:58:47] |
<birkenfeld> |
well, people are encouraged to adapt this to their liking anyway :) |
| [22:58:55] |
<zerok> |
jupp :-) |
| [22:59:08] |
<prencher> |
Kaelten - that looks very reasonable |
| [22:59:21] |
<prencher> |
not that it's me you have to convince :P |
| [22:59:26] |
<Kaelten> |
hehe |
| [22:59:47] |
<Kaelten> |
I figure I'll throw it at mitso once he gets back from vaction and he can do what he wants with it |
| [23:00:22] |
<prencher> |
i dont think he'd have any problem putting that into jinja2 |
| [23:00:35] |
<Kaelten> |
cool :) |
| [23:00:53] |
<Kaelten> |
I don't think the inclusion wrappers in the Library will work under jinja2 |
| [23:01:03] |
<Kaelten> |
I don't use them in my current project so I haven't tested it out |
| [23:01:29] |
<prencher> |
there's this stuff in jinja2, unsure of it though: http://dev.pocoo.org/hg/jinja2-main/file/798f9873a08d/ext/djangojinja2.py |
| [23:02:53] |
<Kaelten> |
ya, I saw that at some point, didn't really like it |
| [23:03:37] |
<Kaelten> |
but that may be my adversion to linebreaking at 80 cols |
| [23:03:44] |
<Kaelten> |
hehe |
| [23:03:48] |
<prencher> |
heh, tell me about it |
| [23:04:04] |
<zerok> |
birkenfeld, formal or informal german? ;-) |
| [23:04:12] |
<Kaelten> |
I know its a *good* idea. but I personally can't stand it. |
| [23:04:45] |
<prencher> |
it's not a good idea, its legacy |
| [23:05:12] |
<Kaelten> |
hehe, true enough. |
| [23:05:51] |
<Kaelten> |
I'm just vehement it outcrying its demise. (not saying you are). So I just choose to say, its not for me. |
| [23:06:54] |
<Kaelten> |
my other neat utility file I'm proud of is my caching framework. |
| [23:06:59] |
<birkenfeld> |
zerok: uh, you mean, du or sie? |
| [23:07:02] |
<prencher> |
i've no problem with it, as long as people don't try to 'educate' me about it on my projects.. which they have |
| [23:07:11] |
<Kaelten> |
prencher: exactly. |
| [23:08:20] |
<prencher> |
mitsuhiko would probably insist on eol79 for it to be an official jinja2 ext though |
| [23:08:27] |
<prencher> |
but that's fine, consistency is good |
| [23:08:33] |
<Kaelten> |
ya |
| [23:08:40] |
<Kaelten> |
and thats file for that purpose |
| [23:08:51] |
<Kaelten> |
I'll just keep my local copy as it is |
| [23:09:12] |
<Kaelten> |
I have some stuff embeded into my render_to_string function to make template overlays work |
| [23:09:47] |
<Kaelten> |
prencher: wouldn't mind your opinion on this, not that its related to jinja in any way |
| [23:09:48] |
<Kaelten> |
http://pastie.org/private/wigu6erav770cvzqrkjrmg |
| [23:10:27] |
<Kaelten> |
there are some specific parts in there to the project I'm working on but I carry the base around with me |
| [23:13:50] |
<prencher> |
Kaelten - was just afk, whats this? |
| [23:14:37] |
<Kaelten> |
its a caching framework |
| [23:14:51] |
<Kaelten> |
meant to be able to cache any arbitrary chunk of serializable data |
| [23:14:57] |
<Kaelten> |
supporting sane invalidation |
| [23:15:05] |
<Kaelten> |
its written to use django singles |
| [23:15:24] |
<Kaelten> |
signals* |
| [23:15:32] |
<prencher> |
looks pretty reasonable, though it'd be easier to grok with some example usage |
| [23:15:35] |
<Kaelten> |
hehe |
| [23:15:37] |
<Kaelten> |
one second |
| [23:16:08] |
<Kaelten> |
index = MainIndexWidget() |
| [23:16:08] |
<Kaelten> |
index.varies_on('has_voted') |
| [23:16:08] |
<Kaelten> |
index.add_invalidator(Project, post_save, pre_delete) |
| [23:16:23] |
<Kaelten> |
where mainindexwidget is a class that inherits and overrides from smartwidget |
| [23:16:40] |
<Kaelten> |
and is used (in this case) as a django view |
| [23:17:54] |
<prencher> |
aha |
| [23:18:12] |
<prencher> |
pretty neat |
| [23:18:29] |
<prencher> |
i'd probably go for a decorator rather in case of views, but as its a generic thing, makes sense |
| [23:18:41] |
<prencher> |
you could add a decorator to wrap a view though |
| [23:19:11] |
<Kaelten> |
ya, I probably could, it'd have to take a few additional args, but would be doable. |
| [23:19:50] |
<prencher> |
@cache_widget((Project, post_save, pre_delete,), (User, ..)) def index(request,...) or something |
| [23:19:57] |
<prencher> |
just a thought |
| [23:20:05] |
<Kaelten> |
hrm, ya |
| [23:20:17] |
<Kaelten> |
that'd require reworking some of the internals, but definately doable. |
| [23:20:44] |
<Kaelten> |
I might do that for the next iteration |
| [23:20:51] |
<Kaelten> |
this is already v3 hehe |
| [23:22:22] |
* |
zerok has quit IRC |
| [23:27:37] |
<prencher> |
Kaelten - whats with the bad chars? |
| [23:29:16] |
<Kaelten> |
oh, memcache is picky about what chars can be in a cache_key |
| [23:30:32] |
<prencher> |
ah, figured it might be something like that |
| [23:32:11] |
* |
zerok has joined #pocoo |
| [23:33:00] |
<zerok> |
damn, my isp seems to be motivated for maintainance :-/ |
| [23:33:20] |
<Kaelten> |
ya, not sure why but they are. also has a max char limit. |
| [23:33:26] |
<Kaelten> |
so I has the keys if they get to big |
| [23:34:13] |
<prencher> |
aye |
| [23:34:32] |
<apollo13> |
yeah memcached and control/invalid chars, long story^^ |
| [23:36:09] |
<zerok> |
birkenfeld, ja, sorry, was offline for the last 30 minutes, although irc only timeouted according to the logs 5 minutes ago :-/ |
| [23:41:44] |
* |
lakin_ has quit IRC |