Thursday, 2007-04-12

ronchilla_where can i find a change log for pylons 0.9.5?00:18
*** int_ has joined #pylons00:18
ronchilla_actually i'm just trying to find out if mako is now the default template as opposed to myghty00:19
*** int has quit IRC00:19
pjenvey__ronchilla_ - it's not, mako is a req now. it'll probably be the default next version00:43
pjenvey__changelog is here http://pylonshq.com/project/pylonshq/browser/Pylons/tags/0.9.5/CHANGELOG00:44
ronchilla_pjenvey__: thank you00:44
ronchilla_pjenvey__: why is it that every time i upgrade pylons i have to recreate my project ?00:45
*** int_ has quit IRC00:47
*** int_ has joined #pylons00:47
*** jimt has joined #pylons00:48
pjenvey__you can run paster create on your existing project00:49
pjenvey__it'll prompt you for diffs00:49
ronchilla_ah ok!00:49
ronchilla_you are a life saver! my project has grown large and i was just groaning at the amount of time required to recreate the projects00:50
pjenvey__sure00:51
pjenvey__I don't think that's really documented anywhere, maybe in paste doc00:51
pjenvey__we should describe it somewhere00:52
TownCrierpylons: Ticket #230 (Document project upgrades) created <http://pylonshq.com/project/pylonshq/ticket/230>00:54
*** int_ is now known as int00:59
*** gldnspud_ has joined #pylons01:13
*** ronchilla__ has joined #pylons01:19
*** ronchilla_ has quit IRC01:19
*** gldnspud has quit IRC01:31
*** auwts has joined #pylons01:34
*** pjenvey__ has quit IRC01:59
*** goibhniu has joined #pylons02:07
ronchilla__Trouble with Pylons 0.9.5 on Windows02:08
ronchilla__paster server --reload development.ini crashes with a traceback: WindowsError: [Error 22] The filename, directory name, or volume label syntax is incorrect02:09
ronchilla__has anybody else experienced this? it seems to be a paste issue02:10
xorAxAxthere was some thread on the mailing list02:10
xorAxAxof pylons02:10
wiggy0.9.5?02:11
ronchilla__cant find it...02:11
xorAxAxwiggy: ?02:12
* wiggy hadn't noticed 0.9.5 was released02:12
ronchilla__xorAxAx: can you tell me the name of the thread02:13
ronchilla__wiggy: it was released last night or early this morning02:13
ronchilla__i've found the problem02:21
ronchilla__its a paste problem; something to do with spaces in the path of the python executable02:22
ronchilla__i think ianbicking discussed it on this thread yesterday... not sure but i think he mentioned a patch?02:24
*** goibhniu has left #pylons02:25
elefthronchilla__,02:53
elefth<CIA-10> ianb * r6450 Script/ (4 files in 3 dirs): Fix problem with Windows and paster serve, and Windows with Python in a path with spaces. Also comment out an inadvertent test failure02:54
*** goibhniu has joined #pylons03:19
*** goibhniu has left #pylons03:19
*** bradmw has quit IRC03:57
*** int has quit IRC04:00
*** auwts has quit IRC04:08
*** int has joined #pylons04:12
*** rann has joined #pylons04:16
*** jimt has quit IRC04:24
ronchilla__elefth: thanx, i'll get it from svn athough my patch works!04:25
elefth:-)04:26
*** auwts has joined #pylons04:33
*** lingoNL has joined #pylons05:18
*** Kush- has joined #pylons05:27
*** rann has quit IRC05:35
*** AlexCONRAD has joined #pylons05:36
*** rob5 has left #pylons06:18
*** uche_ has joined #pylons06:54
*** pobrien has joined #pylons07:04
*** uche has quit IRC07:05
*** MarkB1 has left #pylons07:08
*** creiht has joined #pylons07:21
*** travisbrady has joined #pylons07:42
*** uche_ has quit IRC08:01
*** zzzeek_ has joined #pylons08:08
*** gldnspud_ has quit IRC08:12
*** gldnspud has joined #pylons08:15
*** jbb666 has joined #pylons08:17
*** AlexCONRAD has quit IRC08:17
*** auwts has quit IRC08:18
CIA-22pylons: thejimmyg * r1945 /Pylons/trunk/pylons/templating.py: Fixed so that a KeyError is not raised if format isn't passed08:23
*** lingoNL has quit IRC08:26
*** windle has joined #pylons08:29
nathan^Great news08:35
nathan^I got my mod_rewrite problem all taken care of08:35
*** int has quit IRC08:44
*** int has joined #pylons08:44
*** zzzeek_ has quit IRC08:44
*** ronchilla_ has joined #pylons08:48
*** ronchilla__ has quit IRC08:48
*** AlexCONRAD has joined #pylons09:06
*** gldnspud has quit IRC09:11
*** tarez has joined #pylons09:46
*** hellabot has joined #pylons10:57
etrepumbenbangert: I'll have to find the pricing sheet10:58
benbangertweird that its not on the site ;)10:58
benbangertpylonshq.com is back btw10:58
stegis the wiki there going to stay?10:59
benbangerthmm, server wasn't rebooted, maybe a router blew up10:59
*** scane_ has joined #pylons10:59
benbangertno, all the content is being moved to the new wiki10:59
stegor will everything go to the new docs.pythonweb.org ?10:59
stegcool10:59
*** scane__ has quit IRC10:59
*** pjenvey has joined #pylons11:00
creihtetrepum: That's what I don't like about 95%, there isn't an easy way to calculate what your BW billing is going to be11:02
creihtIt's too magical :)11:02
etrepumcreiht: it's not really that magical, it's pretty easy to predict after you've started using it11:03
*** zzzeek_ has quit IRC11:03
etrepumif you assume an even spread $.25/GB is $79.10 per mbps/month11:04
etrepumwhich is what cachefly's published prices look like11:04
benbangertso if you push an even spread of 10 TB a month out?11:05
etrepum$2556.7111:05
benbangertthats more than cachefly11:05
benbangertI think we pay around 1800 for 10TB in a month11:06
etrepumthat's what $0.25 * 10 * 1024 is (plus some roundoff error)11:06
benbangertsure, but you can get deals if you push a lot ;)11:06
etrepumyeah of course11:06
benbangerthow much would that be on Panther?11:07
benbangertassuming an even spread11:07
etrepum$1600-ish11:07
benbangerthmmm11:07
benbangertoh, on a side-note, I was thinking of getting a page up for Pylons ppl to pinpoint themselves, and maybe arrange BoF's or something to chat with other Pylons users11:07
benbangertit'd be nice to at least be able to visually see on a map how many Pylons users are in the vicinity so I know if its worth planning a meet-up11:08
etrepumwhat you can do is set up a free trial w/ them.. they normally do a week or two but you could probably get a month out of them11:08
creihtThat's cool11:08
creihtsomething like frappr?11:08
Chairoshey, anyone else here going to RailsConf? (yeah, I know. but it's for business.)11:08
benbangertfrappr?11:08
creihthttp://www.frappr.com/11:08
benbangertChairos: the guy that sits next to me is11:08
*** cwells_ has quit IRC11:08
etrepumand then you can get them to send you a daily stats email that says what your mbps is per site and what the average so far in the month is11:08
etrepumthen you can use that to estimate what it's going to be overall and then negotiate the $/mbps that puts you where you want to be11:09
benbangertcreiht: neat, can I put it on another page? ;)11:09
benbangertcreiht: or is it stuck on theirs?11:10
creihtWell I think you can have your own group on frapper11:10
creihtI haven't really used it much11:10
creihtjust seen it on a couple of sites11:10
benbangertyea, looks like you can plant it elsewhere11:10
benbangertthat'd work, awesome, I like it better when its done for me :)11:11
creihthehe11:11
creihtIt even tries to autodetect what city you are in11:11
benbangertyea, I noticed that, pretty cool11:11
xorAxAxgjh: ping11:19
*** ronchilla_ has quit IRC11:24
*** ronchilla_ has joined #pylons11:24
*** btbytes has left #pylons11:34
gjhxorAxAx: ping.11:35
xorAxAxgjh: you made some usage of moin's wsgi capabilities, i lost the url to the page documenting it11:36
gjhxorAxAx: http://bel-epa.com/library/pylons/pylonsandmoinmoin.html11:37
benbangertgjh: that'd be nice in the cookbook.... ;)11:38
benbangertgjh: you know if James signed a book deal yet?11:38
gjhbenbangert: I want to make sure it actually works first. :D11:39
benbangertah yes, there's always that11:39
gjhbenbangert: he hasn't mentioned anything.11:39
*** zzzeek_ has joined #pylons11:39
gjhbenbangert: I just set up a SPARQL endpoint mediated via a Pylons action.11:40
nathan^Using myghty, is there a good way to format a float with 2 decimal places using <% foo.price %> ?11:40
benbangertnathan^: use the string replacement formatting11:41
benbangertnathan^: I think its like <% "%0.2d" % foo.price %>11:41
benbangertyou'll need to look at the string formatting for %d11:41
*** cwells has joined #pylons11:42
gjhxorAxAx: or .. http://bel-epa.com/wiki/MoinMoinWSGIcallable :-)11:45
benbangertChairos: around?11:49
Chairosyeah11:49
Chairosfor a few more minutes11:50
benbangertthe proxy thing you noted with making the URL11:50
benbangertthe latest Routes changes how it gets its URL11:50
benbangertcan you see if it properly handles leaving off the port info and such?11:50
Chairossure, but I can't get around to it until tonight.11:50
benbangertit properly goes to HTTP_HOST first, then back to SERVER_PORT and SERVER_NAME11:50
Chairoscan you remind me then?11:50
benbangertI'm thinking HTTP_HOST will properly reflect the public facing URL that was used, so it should be ok11:51
Chairosyeah, that's what I'd expect.11:51
* Chairos goes to run off to a class, and then to work to do some Apache optimizing.11:51
benbangertChairos: http://routes.groovie.org/trac/routes/ticket/4311:51
benbangertthats the ticket that was fixed11:51
*** Kush- has joined #pylons11:52
nathan^benbangert, that doesnt actually work11:57
nathan^In this case:11:57
nathan^<% "%0.2f" % itin.lpc.baseFare+itin.lpc.taxesEtc %>11:57
nathan^What happens is Error(TypeError): cannot concatenate 'str' and 'float' objects11:58
*** mpathy has joined #pylons11:59
nathan^But12:03
nathan^It works when I add them in the python block for the page before I get there12:03
benbangertnathan^: prolly cause in the prior page one of them is a float?12:06
*** scane_ has quit IRC12:07
*** scane has joined #pylons12:07
*** nir has quit IRC12:08
nathan^benbangert, nah12:18
nathan^Either way I got it working the way I want. :)12:19
*** tarez has quit IRC12:24
*** ronchilla__ has joined #pylons12:26
*** ronchilla_ has quit IRC12:26
*** jbb666 has quit IRC12:26
*** jbb666 has joined #pylons12:26
*** tarez has joined #pylons12:27
*** scane has quit IRC12:30
*** scane_ has joined #pylons12:30
*** travisbrady has quit IRC12:41
*** gak has quit IRC12:44
*** lisppaste5 has quit IRC12:44
*** sloat has joined #pylons12:45
*** scane_ has quit IRC12:49
*** scane_ has joined #pylons12:49
*** lisppaste5 has joined #pylons12:53
*** mike8 has joined #pylons13:08
*** etrepum_ has joined #pylons13:19
*** etrepum has quit IRC13:19
*** scane has joined #pylons13:21
*** scane_ has quit IRC13:21
*** gjh has quit IRC13:24
*** tarez has quit IRC13:24
*** lingoNL has joined #pylons13:25
*** gjh has joined #pylons13:31
*** jesusphreak has joined #pylons13:32
jesusphreakAre the changes in 0.95 outlined anywhere?13:32
pjenvey_http://pylonshq.com/project/pylonshq/browser/Pylons/tags/0.9.5/CHANGELOG13:37
steg*shakes fist at django*13:46
benbangertI'm putting an announcement up soon13:48
*** kg has joined #pylons13:49
*** rdesh has joined #pylons13:49
jesusphreaksteg: heh, why do you say that?13:50
Chairosbenbangert: just tested the Routes trunk.13:50
Chairosit works for me13:50
benbangertChairos: latest Routes release is fine13:50
benbangertChairos: Routes trunk has no changes over the current release13:51
Chairoswell, whatever13:51
Chairosit works fine.13:51
benbangert:)13:51
benbangertcool13:51
*** kg has quit IRC13:51
jesusphreaksteg: I'm pretty frustrated with Django myself right now13:51
jesusphreakI know I say that every few weeks, but after 0.96 came out, I decided to just get over it and do things the Django way13:51
jesusphreakso I've been trying to write an app with it for the past few weeks and I keep wanting to slam my head against the table13:52
jesusphreakthere's just way too much built in13:52
stegjesusphreak: Oh I just love being an angry nerd and django is convenient for hat13:53
stegI don't actually have to use it :)13:53
stegit's like gossiping13:53
steg"and you know what else django did?"13:53
jesusphreakheh13:54
stegit's celebrity scandal for the python world13:54
jesusphreakthey've just got MVC so muddled that it kills me13:54
jesusphreakyou define view code inside your model13:54
*** rope has quit IRC13:54
* pjenvey_ wonders why jesusphreak keeps going back to django13:55
stegtoscawidgets is the first form system I've found that actually has the flexibility to handle the forms I want to build13:55
stegthanks in no small part to formencode, btw13:55
jesusphreakpjenvey_: I really don't know...everytime I figure that I'll just get used to it and I never do13:55
stegthe two work well for each other13:55
benbangertI want to get TW working with less effort in 0.9.613:56
stegjesusphreak: hmm, I find myself not worrying too much about MVC13:56
jesusphreakI don't tend to either, but you've got to have some kind of separation13:57
jesusphreakthe newforms stuff let's you generate forms from your model, well you do that and you inevitably want to tweak that form in some way13:57
stegmy widgets tend to know a fair amount about my model13:57
jesusphreakso either you make something that looks ugly as hell or you create an entirely new form, and at that point you are duplicating info in both the form and the model13:58
benbangertjesusphreak: and you can tweak individual widgets in TW13:58
jesusphreakit gets really messy13:58
benbangertjesusphreak: and you can start from the template the widget comes with13:58
benbangertjesusphreak: thats the whole point of the widget browser actually, to look at the template a widget comes with and change it if necessary13:58
jesusphreakdoes toscawidgets finally have some documentation? it has been awhile since I looked13:58
benbangerthe just put up a tutorial13:58
stegyou can override templates at any level too13:58
stegyou can have a parent widget render its child if it needs that control13:58
jesusphreakoh damn13:58
stegor you can ask the child to render itself13:58
jesusphreakI'm defintely gonna have to look at this13:59
benbangerthttp://tinyurl.com/yt9xhs13:59
stegit's all done in regular template code13:59
benbangertis the package13:59
benbangertwith a readme and such13:59
stegbenbangert: what's this?13:59
benbangertits from this, http://groups.google.com/group/toscawidgets-discuss/browse_frm/thread/bc139de3383631d414:00
stegoh I just checked my mail and found it14:00
stegcool14:00
stegI am not going to read it because then I'll find out I've got the wrong idea and get depressed14:01
jesusphreakI think DHH was really right about a few things in designing Rails14:07
jesusphreakhe refuses to put login generators and authentication systems in the core and such...and it makes a lot of sense14:08
*** tarez has joined #pylons14:08
jesusphreakyou put something like that in the core and you can never make it flexible enough without making it really complex...so his mindset is to just make the framework itself efficient enough to where you can built custom unique systems like that within every app easily14:09
jesusphreakhe might be an egomaniac but he is absolutely right on that point14:09
*** tarez has left #pylons14:13
*** jesusphreak has quit IRC14:20
*** tarez has joined #pylons14:22
*** mpathy has quit IRC14:34
*** etrepum_ has quit IRC14:34
*** jbb666 has quit IRC14:35
*** etrepum has joined #pylons14:35
*** keren23f has quit IRC14:38
*** scane has quit IRC14:46
*** scane has joined #pylons14:47
*** scane has quit IRC15:04
*** scane_ has joined #pylons15:04
CIA-22pylons: thejimmyg * r1946 /Pylons/trunk/ (3 files in 3 dirs): Updated the docs version number and changed the links to use the PylonsHQ site as an example15:07
*** scane_ has quit IRC15:09
*** scane_ has joined #pylons15:10
*** mike8 has quit IRC15:16
*** zzzeek_ has quit IRC15:24
CIA-22pylons: thejimmyg * r1947 /Pylons/trunk/pylons/controllers.py: Corrected some simple formatting problems15:25
*** etrepum_ has joined #pylons15:31
*** etrepum has quit IRC15:31
*** uche has joined #pylons15:32
*** tarez has quit IRC15:38
rdeshhey guys, is it preferred to use python 2.5 or 2.4 with pylons developmenT?15:41
Chairoseither one should work.15:41
* steg feels guilty because he just hacked the standard library wsgi server stuff so that it would play nicely with wingide15:43
rdeshHm, okay thanks15:48
rdeshalso, going through the quickwiki tutorial, I did the easy_install of quickwiki okay, but when I run make-config QuickWiki test.ini, I get the following error:  Some #directives are missing their corresponding #end ___ tag: cache15:48
rdeshany ideas?15:48
*** efm_ has quit IRC15:49
ianbickingrdesh: I think it's a problem with MyPackage.egg-info/paste_deploy_config.ini_tmpl15:50
ianbickingthere's a #cache line in it that Pylons creates, but Cheetah interprets as a directive15:50
rdeshyikes... being a newbie i don't have much an idea what you're talking about :/15:51
ianbickingsorry... you might just want to skip that and copy over development.ini15:51
*** creiht has quit IRC15:51
rdeshthe development.ini from the egg folder?15:52
rdeshactually, i don't see one here15:52
CIA-22pylons: thejimmyg * r1948 /sandbox/examples/QuickWiki/tags/0.1.4/ (51 files in 14 dirs): Result of running paster create for the QuickWiki source15:58
*** pobrien has quit IRC16:00
pjenvey_rdesh - that'll be fixed in quickwiki 0.1.4, looks like james is preparing that as we speak16:04
pjenvey_fortunately16:04
rdeshah okay...just trying to make sense of this tutorial... skipped using the premade quickwiki and am "building it from scratch" as the tutorial shows16:04
pjenvey_http://pylonshq.com/project/pylonshq/wiki/FAQ#why-does-paster-make-config-raise-a-cheetah-parser-parseerror16:05
pjenvey_will fix it for now16:05
*** etrepum_ is now known as etrepum16:06
elefthrdesh, perhaps you could skip cheetah and use mako anyway.16:11
rdeshhi lef!16:11
elefthhi :-)16:11
Chairoselefth: cheetah was used by pastescript16:11
elefthChairos, oh16:11
elefthI apologise, I thought he was talking about the standard template engine in Pylons.16:12
elefthis it cheetah or something else by the way? I have long been using Mako.16:12
xorAxAxit is still used by pastescript16:13
xorAxAxif you dont publish an entrypoint yourself that hints pastescript not to use it16:13
rdeshso mako is going to replace myghty?16:13
elefthyes16:14
elefthrdesh, but is is easy to start using mako as the standard template engine from now16:14
elefthhttp://pylonshq.com/project/pylonshq/wiki/TowardsOnePointZero and look at "Switching to Mako"16:15
CIA-22pylons: pjenvey * r1949 /Pylons/trunk/ (CHANGELOG pylons/commands.py): fixed Python 2.3 compatibility in paster shell: dict.update only takes another dict16:15
CIA-22pylons: pjenvey * r1950 /Pylons/tags/0.9.5/ (6 files in 4 dirs): merged r1944:1949 from trunk, minus r1946's setup.cfg. integrated r1949's CHANGELOG16:21
CIA-22pylons: pjenvey * r1951 /Pylons/trunk/CHANGELOG: including the paster shell fix as part of 0.9.516:25
*** scane_ has quit IRC16:27
*** scane__ has joined #pylons16:28
*** scane__ has quit IRC16:35
*** scane has joined #pylons16:36
benbangertelefth: plus, 0.9.5 pulls down Mako, so changing that one line is all thats needed :)16:44
*** scane_ has joined #pylons16:44
*** scane has quit IRC16:44
elefthsweet16:45
benbangertI'm prepping the announcement now16:45
benbangertluckily I just caught a 2.3 compat issue with paster shell16:45
benbangertphrew16:45
elefthoh is it not officially released yet? I emailed most of my friends yesterday that 0.9.5 got released...16:45
*** keren23f has joined #pylons16:45
elefthand that they should check out the site16:45
benbangertwell, I only saw 20 downloads of the egg16:46
benbangertso most people haven't grabbed it or updated yet16:46
benbangertthe site got the announcement, yea16:46
benbangertI had to re-upload the fixed egg16:46
benbangertif your friends are using Python 2.3, they'll want the new one16:46
elefthI don't think any of them uses 2.316:46
elefthbenbangert, ugh, this reminds me that I had written 80% of a short tutorial for using Alchemyware with Pylons. Where shall I place it on the wiki you think?16:47
benbangertwell, you'll want it on the new wiki16:48
benbangertin the Pylons Community section16:48
benbangertI'll add a sub-section for tutorials16:48
elefthbenbangert, so not somewhere in http://pylonshq.com/project/pylonshq/wiki/SqlAlchemyWithPylons ?16:49
benbangertnope, no more pages should be added to the old wiki16:49
benbangerteverything should go to the new one16:49
*** gjh has quit IRC16:49
* pjenvey_ goes to add a warning to the front page of the wiki to use confluence16:50
benbangertelefth: http://docs.pythonweb.org/display/pylonscommunity/Tutorials16:50
benbangertelefth: add a page under there16:50
benbangertpeople will be able to comment as well16:51
elefthok, it is not finished yet anyway. I will finish the docs for the dispatcher and then I'll complete the tutorial. I'll put it there, thanks :-)16:51
elefththis "Python Web Documentation Project" is a good thing.16:52
TownCrierpylons: WikiStart edited <http://pylonshq.com/project/pylonshq/wiki/WikiStart?version=218>16:53
benbangertpjenvey_: still need to rig up an xml-rpc upload of the module API docs as well16:55
benbangerthmmm16:55
pjenvey_yea16:56
pjenvey_then we can nuke them from svn16:56
pjenvey_add a ticket16:56
pjenvey_did that email import every finish? heh16:57
pjenvey_s/every/ever/16:57
benbangertpjenvey_: nope, I had to kill the proc16:57
benbangertno idea what happened, maybe point it at a smaller box with only 100 messages at a time or something16:57
benbangertpjenvey_: it can import mbox files....16:57
benbangertif you have it all in an mbox file16:57
*** zzzeek_ has joined #pylons16:58
pjenvey_i suspect it was thrasing16:58
pjenvey_i didn't look at the system CPU time though16:58
pjenvey_the process wasn't using much cpu16:58
pjenvey_ok back to what i was doing before you found that bug16:59
pjenvey_apparently one of the twitter developers is bad mouthing rails16:59
benbangertoh, I saw that, in an interview or something, right?16:59
pjenvey_ya16:59
* pjenvey_ At this17:00
* pjenvey_ point in time there’s no facility in Rails to talk to more than one17:00
* pjenvey_ database at a time. 17:00
* pjenvey_ If you’re looking to deploy a big web application17:01
* pjenvey_ and you’re language-agnostic, realize that the same operation in Ruby17:01
* pjenvey_ will take less time in Python.17:01
benbangertlol17:01
*** rdesh has quit IRC17:02
*** cwells has quit IRC17:04
*** scane__ has joined #pylons17:18
*** scane_ has quit IRC17:18
*** scane__ has quit IRC17:22
*** scane_ has joined #pylons17:22
*** scane_ has quit IRC17:25
*** scane__ has joined #pylons17:25
*** benbangert has quit IRC17:27
*** cwells has joined #pylons17:28
*** scane__ has quit IRC17:29
*** scane_ has joined #pylons17:30
triplah_wyou guys seen moofx ?17:31
*** scane_ has quit IRC17:34
*** scane__ has joined #pylons17:35
CIA-22pylons: thejimmyg * r1952 /Pylons/trunk/docs/quick_wiki.txt: Updates for the 0.9.5 release17:43
CIA-22pylons: thejimmyg * r1953 /sandbox/examples/QuickWiki/tags/0.1.4/ (21 files in 10 dirs): Changes resulting from following the new QuickWiki tutorial17:44
matt_goodhuh, apparently I can't make a controller called "setup"17:44
matt_good"error: invalid command 'controller'"17:44
matt_goodworks with other names though17:45
*** Kush1 has joined #pylons17:45
CIA-22pylons: thejimmyg * r1954 /Pylons/trunk/docs/install.txt: Updated the instructions for 0.9.5 to avoid an issue where easy_install detects the wrong version17:49
*** scane__ has quit IRC17:50
*** scane_ has joined #pylons17:50
*** sloat has quit IRC17:53
*** windle has joined #pylons18:04
*** zzzeek_ has quit IRC18:11
pjenvey_paster controller setup.. that's an odd one18:13
windleianbicking: can you svn up buildutils and put up a new release? the dev version is the only one that works on Windows18:14
windlepjenvey_: hmm?18:14
* pjenvey_ matt_good: huh, apparently I can't make a controller called "setup"18:14
* pjenvey_ [5:44pm] matt_good: "error: invalid command 'controller'"18:14
windlemaybe he's not in the right directory?18:15
pjenvey_no, i just reproduced it18:15
windleoh18:15
pjenvey_pretty strange18:15
pjenvey_oh that's a nice one18:18
pjenvey_we try to import 'setup' to make sure the controller name doesn't clash18:18
pjenvey_which imports your project's setup.py18:19
pjenvey_which does a sys.exit with "no commands supplied" as if you ran "python setup.py"18:19
pjenvey_hate teh relative imports18:19
windleyup18:22
*** zzzeek_ has joined #pylons18:23
CIA-22pylons: pjenvey * r1955 /Pylons/trunk/ (CHANGELOG pylons/commands.py):18:27
CIA-22pylons: allow creation of controllers named 'setup' via paster controller18:27
CIA-22pylons: Reported by Matt Good18:27
windlepjenvey_: http://weblog.lonelylion.com/2007/04/12/twitters-been-served/18:31
TownCrierpylons: Ticket #201 (Make the response object available in __after__) updated <http://pylonshq.com/project/pylonshq/ticket/201#comment:4>18:31
pjenvey_DHH blogged a reply18:32
windleyea18:32
windleI like Chris's take on it18:32
pjenvey_looked like the comments to it were turning into a bitchfest18:32
windleits hilarious18:32
pjenvey_oh. that's the link to it, duh18:32
windle"Open source…where the source is open, and the mouths are closed."18:32
*** fullpony has joined #pylons19:02
*** pjenvey__ has joined #pylons19:09
*** pjenvey_ has quit IRC19:09
*** welterde has quit IRC19:25
*** fullpony has quit IRC19:59
*** scane__ has joined #pylons20:06
*** scane has joined #pylons20:08
*** scane_ has quit IRC20:09
*** scane has quit IRC20:10
*** scane_ has joined #pylons20:10
*** scane__ has quit IRC20:11
*** gldnspud has joined #pylons20:22
*** scane_ has quit IRC20:24
*** scane has joined #pylons20:25
*** gldnspud has quit IRC20:31
*** shawn has joined #pylons20:32
TownCrierpylons: Ticket #163 (QuickWiki cannot be "paste"d ->) closed <http://pylonshq.com/project/pylonshq/ticket/163#comment:9>20:41
*** zzzeek_ has quit IRC20:49
*** gldnspud has joined #pylons20:50
*** scane_ has joined #pylons21:04
*** scane has quit IRC21:04
*** scane has joined #pylons21:08
*** scane_ has quit IRC21:08
*** scane_ has joined #pylons21:11
*** scane has quit IRC21:11
*** btbytes has joined #pylons21:14
pjenvey__yay new quickwiki21:28
pjenvey__no more cheetah problems21:28
*** Niosop has joined #pylons21:30
Niosopevening21:30
NiosopI've been working w/ Django a lot lately, and just started playing w/ pylons.  I was wondering if anyone could give me a couple of pros/cons of pylons compared to django?21:31
Chairoswe have a guy called jesusphreak who would LOVE to do that. :D21:33
Chairosbasically, Pylons is a hell of a lot more flexible.21:33
ChairosYou have two ORMs to choose from, plus any number of non-ORM data-storage techniques.21:33
ChairosYou can use most any template language you want, including one that's a clone of Django's.21:34
ChairosPylons apps are easier to deploy than Django apps.21:34
Niosopnod, noticed that.  The ability to use SA and a wide assortment of templates is what made me look at it in the first place.21:34
ChairosThe biggest downside is that the Pylons community is a lot smaller than the Django community.21:34
NiosopHow hard is mod_python integration?  I saw a doc on it, and it didn't look TOO difficult, but is it that easy in practice?21:35
Chairosanother occasional downside is that Pylons is constructed from a lot of parts: Paste, Beaker, Routes, etc... and docs are sometimes spread out in places you wouldn't expect.21:35
ChairosIt's fairly easy.21:35
ChairosBut I wouldn't recommend it.21:35
Niosopbetter solution?21:35
ChairosIt's the second-least efficient method of deploying apps, just ahead of plain-old CGI.21:35
Niosopfcgi/scgi?21:36
Chairosin increasingly-better order, I would recommend SCGI, FastCGI, and mod_proxying to an appserver21:36
Chairospylonshq.com is in fact a Pylons app; it used to run with mod_python and now runs with the mod_proxy solution.21:36
Chairosturnthepage.org is a pylons app I wrote; I used to run it with FastCGI, and like pylonshq, I've switched to mod_proxy, using CherryPy's WSGI appserver.21:37
Niosopwhat's it proxying to?21:37
Niosopahh, cherrypy?21:37
Chairosa tiny HTTP server based off SimpleHTTPServer in the standard library.21:37
Niosopnod21:37
ChairosWSGI is tremendously useful in that you can deploy it any number of ways.21:37
Niosopso you run cherrypy on some port, and use mod_proxy to redirect traffic to that port?21:38
Chairosthere's at least three standalone appservers for it, three FastCGI interfaces, including one with C code to make it faster, two SCGI interfaces, a mod_python interface, an IIS interface, and an AJP interface21:38
ChairosNiosop: it's not technically cherrypy; it's just a WSGI appserver that ships WITH cherrypy.21:38
NiosopThe only thing I really need to be able to do is to run multiple apps on the same server using named virtual hosts in apache.21:38
Chairosbut yes21:38
ChairosI do that.21:38
ChairosI have two apps running on my server right now in virtual hosts21:39
ChairosI'll show you what the apache config looks like, if you want21:39
Niosopyeah, that would be handy  :)21:39
NiosopWhat distro?21:39
Chairosdebian testing21:39
Niosopcool, same here, so shouldn't be an issue21:39
lisppaste5Chairos pasted "apache config" at http://paste.lisp.org/display/3964621:40
Chairosthe other app on the server has an identical apache config, except it runs on port 500021:41
Chairosneedless to say, my firewall blocks actual access to the appservers; you have to go through apache.21:41
Chairosyou could also use lighttpd, or a proxy like ngnix or squid in front21:42
Niosopnod.  Would probably use apache or lighttpd for serving static files.21:43
Chairosfor that particular app, I only have one static file, and it has to be explicitely downloaded, so I don't bother.21:44
Chairosbut, yeah, you can do that.21:44
NiosopAny nice middleware for caching in pylons?  Looks like just using the g global would work pretty well as a query/object type cache.21:44
Chairosthere's much better caching built in.21:45
Chairoshttp://pylonshq.com/docs/0.9.4.1/caching.html21:45
Niosopnice  :)21:45
Chairosit uses DBM files by default, but it can also cache in memory, or to pickle files, or it can use memcache.21:45
Chairosit can also use all those options for sessions, though there the pickle files are the default, to make it easy to expire old sessions by having a cronjob delete old files.21:45
Niosopcool.  I notice it mentions using Myghty's container API for caching, would it still be available if using mako?21:46
Niosopnot sure if the container API is tied to the template system or not21:47
pjenvey__it's not21:47
Niosopnot available or not tied?21:47
pjenvey__not tied21:47
Niosopok, cool  :)21:47
Niosoplooks like I might be able to move over to pylons pretty smoothly then.21:48
Chairosyeah, the container api is part of a package called MyghtyUtils that was factored out of Myghty a while back.21:48
Chairosbecause Myghty started life as a semi-framework in its own right, not just a templating system.21:49
Chairosif you've heard of Perl's HTML::Mason, it was basically similar.21:49
Niosopno, I managed to dodge Perl in my trek through programming languages  :)21:49
Chairosgood lad21:49
pjenvey__yea, nice!21:50
pjenvey__don't look back21:50
ChairosI do regret dropping Scheme, though.21:50
NiosopI'm pretty happy w/ Python now.  C# was nice for a while, but moved to python back when mono was pretty unstable.21:52
Niosopnow if only SQL Alchemy or SQL Object supported Informix, lol21:55
pjenvey__there's a ticket for it21:57
pjenvey__http://www.sqlalchemy.org/trac/ticket/33621:57
pjenvey__ooh and a patch21:57
NiosopNice.  Might be enough, I just want basic read support, won't do any writing to the DB.21:58
Niosopand if not, no biggy, since it's just basic queries, InformixDB alone would be enough.21:59
*** btbytes has quit IRC22:06