Tuesday, 2007-04-10

*** kg has quit IRC00:02
*** rope has joined #pylons00:26
*** gak has joined #pylons00:42
*** gakman has quit IRC00:50
*** pjenvey_ has quit IRC01:26
*** damjan has quit IRC01:27
*** kg has joined #pylons01:30
*** kg has quit IRC02:07
*** goibhniu has joined #pylons02:19
*** rope has joined #pylons02:29
*** gjh has quit IRC02:33
*** auwts has joined #pylons02:34
*** martineg has joined #pylons02:40
*** gjh has joined #pylons02:40
*** rope has quit IRC02:41
*** auwts` has joined #pylons03:04
*** climbus has quit IRC03:07
*** auwts has quit IRC03:14
*** gldnspud has quit IRC03:14
*** mcella has joined #pylons03:19
*** nathan^ has quit IRC03:21
*** gldnspud has joined #pylons03:23
*** goibhni1 has joined #pylons03:51
*** goibhniu has quit IRC03:59
*** deitarion3 has joined #pylons04:08
*** rope has joined #pylons04:10
*** deitarion has quit IRC04:11
*** deitarion3 is now known as deitarion04:11
*** goibhni1 has quit IRC04:15
*** goibhniu has joined #pylons04:18
*** nir has quit IRC04:26
*** lisppaste5 has quit IRC04:30
*** nir has joined #pylons04:33
*** phrank13 has quit IRC04:34
*** lisppaste5 has joined #pylons04:37
*** _damjan_ has joined #pylons04:52
*** dds has joined #pylons05:09
*** laurent_88 has joined #pylons05:10
*** ToyKeeper has quit IRC05:17
*** cwells has quit IRC05:17
*** cwells has joined #pylons05:21
*** auwts has joined #pylons05:43
*** auwts` has quit IRC05:50
*** auwts has quit IRC06:04
*** auwts has joined #pylons06:05
*** triplah_ has quit IRC06:09
*** triplah_ has joined #pylons06:10
*** zzzeek_ has joined #pylons06:10
*** triplah_ has quit IRC06:10
*** goibhniu has quit IRC06:18
*** fullpony has joined #pylons06:21
*** goibhniu has joined #pylons06:21
*** nathan^ has joined #pylons06:34
*** hinoglu has joined #pylons06:43
ddsmrr, where's ben06:44
ddsIf anyone sees Ben, tell him routes should use & when constructing URLs with GET parameters06:45
wiggywhy not send him an email?06:47
*** hinoglu has quit IRC06:51
_damjan_dds: this was discussed before06:54
_damjan_dds: and it's not correct06:54
ddswiggy: I'll get around to it.06:54
_damjan_dds: & is only valid for html/xhtml06:54
dds_damjan_: the W3C validator fails on it..06:54
_damjan_dds: but not for javascript and other uses of url's06:55
ddsoh?06:55
_damjan_dds: so it's really that the template engine needs to convert & to &06:55
_damjan_dds: and Genshi does it if I'm not mistaken06:55
dds_damjan_: good argument06:55
_damjan_dds: not mine actually :)06:56
*** creiht has joined #pylons07:08
*** negus has quit IRC07:09
dds_damjan_: one issue I have is that the template engine shouldn7t care either07:28
ddsI use mako for generating javascript among otherthings07:28
ddsuse h.url throughout for linking back to ajax functions07:28
_damjan_well.. mako is broken in that way yes :)07:33
_damjan_so you'll have to take care of that manually07:34
*** pobrien has joined #pylons07:38
*** dds has quit IRC08:07
*** windle has joined #pylons08:21
*** ctc_patrick has joined #pylons08:23
*** Kush- has joined #pylons08:23
*** laurent_88 has quit IRC08:30
*** auwts has quit IRC08:35
*** ianb|afk is now known as ianbicking08:49
*** uche_ has quit IRC08:55
*** zzzeek_ has quit IRC09:05
*** windle has quit IRC09:07
*** etrepum has quit IRC09:07
*** uche has joined #pylons09:08
*** nathan^ has quit IRC09:08
*** Kush- has quit IRC09:10
*** jbb666 has joined #pylons09:10
*** nathan^ has joined #pylons09:14
*** bradmw has joined #pylons09:17
*** etrepum has joined #pylons09:33
*** fullpony has quit IRC09:36
*** benbangert has joined #pylons09:38
*** efm has quit IRC09:39
benbangert__wyatt_: adding your last patches to Routes now, btw. thanks for the patches, makes it sooooo much easier ;)09:42
*** Kush- has joined #pylons09:43
*** vednis_ has quit IRC09:44
*** vednis_ has joined #pylons10:00
*** efm has joined #pylons10:01
*** goibhniu has quit IRC10:08
*** efm has quit IRC10:19
*** efm has joined #pylons10:20
*** mcella has quit IRC10:26
*** fintan has joined #pylons10:30
*** __pv has joined #pylons10:31
*** zzzeek_ has joined #pylons10:37
*** etrepum has quit IRC10:44
*** ronchilla has quit IRC10:48
*** pjenvey_ has joined #pylons10:48
*** efm has quit IRC10:52
*** etrepum has joined #pylons10:53
*** uche has quit IRC10:55
*** uche has joined #pylons11:03
*** fullpony has joined #pylons11:14
*** efm has joined #pylons11:15
*** Kush- has quit IRC11:30
benbangertnew Routes out for those feeling lucky11:30
benbangertj/k, I'm sure its fine, there's tons and tons of unit tests ;)11:30
Chairosyay11:31
benbangertbig ol changelog11:31
Chairosindeed11:32
ChairosI see you still haven't implemented the "Read My Mind" feature.11:32
* Chairos was slightly annoyed last night because he couldn't figure out how to get Routes to pick up the 'preferred' domain and port when running through mod_proxy.11:33
ChairosI ended up just having an app_conf entry for that.11:33
Chairosthe appserver was running on port 6000, so of course when I used qualified=True, it stuck :6000 on there.11:33
benbangertof course11:33
benbangertstop running on weird ports ;)11:34
Chairoswell, as long as I wasn't running on port 80 I'd have that problem, I think.11:34
Chairosand apache's on port 80. :D11:34
*** efm_ has joined #pylons11:34
benbangertactually, I was looking at how this one Java app does it11:34
benbangertand I think I'll switch over to that11:34
ChairosI think we just need strong AI in Routes, that'll solve it.11:34
Chairosoh?11:34
benbangertwhen they generate absolute URL's, they call get_server_name and get_server_port11:34
benbangertand if you setup a proxy_host and proxy_port setting, it'll use that11:35
Chairosneat-o11:35
benbangertso that it makes proper absolute URL's behind proxies11:35
*** efm has quit IRC11:36
Chairosbenbangert: I got my cheeseshop mirror up and running, btw.11:36
Chairoshttp://mail.python.org/pipermail/distutils-sig/2007-April/007462.html11:37
benbangertneat11:37
creihtbenbangert: Just saw http://docs.pythonweb.org/dashboard.action11:38
creihtcool stuff11:38
creihtHave you gotten much traction from the other projects yet?11:38
benbangertAlberto is adding stuff11:39
benbangertMark Ram is interesting11:39
benbangertand I'm making a space for Paste today11:39
benbangertand prolly Routes as well11:39
benbangerterrr, interesting/interested11:39
creihtcool11:39
*** rope has quit IRC11:50
*** rope has joined #pylons11:51
benbangertChairos: http://routes.groovie.org/11:52
benbangertcheck out that changelog for 1.6.3 ;)11:52
SignumI'm curious what IDEs/editors other pylons programmers use. I'm currently playing around with Eric but the Subversion implementation is lousy. PIDA seems to be half done. But Vim alone is very comfortable because Pylons projects typically need a few files opened simultanously (models, controller, template).12:12
creihtSignum: I have been playing with the latest Komodo... It's pretty nice if you have a decently fast machine12:13
aa_Signum: well, I wrote pida, you want to write the other half of it? :)12:13
creihtIt includes code completion for JS as well as the python stuff12:13
creihthehe... whoops :)12:13
creihtaa_: I'm a big fan of pida, though it is a bit difficult to get it running on OS X :)12:13
fullponySignum: I use textmate and ipython12:15
creihtipython is a must no matter which IDE you use :)12:15
Signumaa_: Actually PIDA is the only alternative to using Vim alone. :) And I like it so far. Just on Debian (perhaps on all systems) sometimes the dialogs are empty until I resize the window a little. That's strange.12:16
fintanWhat about eclipse with the python plugin?12:16
Signumcreiht: try. It would be great to have the power of ipython while programming though. Like the auto-completion you get in Eric. (Just that it's pretty borked.)12:16
creihtfintan: I used that for a while, but Eclipse died too many times for me12:17
aa_Signum: that's quite an old bug in a gtk theme or something. I never quite got the bottom of it12:17
fullponycan anyone point me to any previous discussion (if there has been any) of implementing a Django like admin interface for a Pylons app?12:17
aa_creiht: yeah, almost impossible on OSX, we have someone who is "thinking about making a package" though12:17
creihthehe12:18
creihtI thought about it for a while, and gave up :)12:18
creihtGTK is just too much of a pain on OS X right now12:18
creihtAt least native12:18
aa_yeap12:18
creihtand I have X11 apps in OS X12:18
fintanI've not had that much probs with it. Plus it's easy to swtch between envs12:18
aa_native is a no-go, the X11 one slightly works12:18
Signumaa_: Oops? PIDA supports bzr?12:18
aa_Signum: yeah, most version control systems12:19
Signumcreiht: 300 bucks for komodo is a bit tough...12:19
creihtfintan: It works great until suddenly Eclipse will no longer load because of some crazy plugin conflict12:19
Signumaa_: Suddenly I start to love it! :)12:19
creihtSignum: They have a free version (which I have been using)12:19
creihtKomodo edit12:19
fintanYeah I've had that before I just keep it simple. Python, pearl, php & sql explorer12:20
creihtotherwise, I just use gvim12:20
Signumcreiht: I'll take a look.12:20
aa_Signum: well I hate "selling" it, but you get a graphical view of files and statuses and it automatically detects version control system used, eg look in this screenshot: http://pida.co.uk/files/screenshots/pida_0-4-4_10.png12:20
Signumcreiht: I love vim, too. But keeping 8 windows/buffers open at the same time is a pain.12:20
aa_well, I currently have 74 buffers open in vim with pida12:21
mitsuhiko14 here12:21
aa_in fact, originally it was just an advanced vim-buffer-explorer12:21
Signumaa_: Selling is okay. :) I know PIDA from playing with IDEs from time to time. And I'm the debian developer who's been sponsoring the package into Debian during the last year. :)12:22
mitsuhikoheh. the new pida webpage reminds me of the pocoo one :D12:22
Signumaa_: The only feature that's really missing is auto-completion on the code. Eric does that half-well. But with vim it seems to be tricky.12:22
creihtSignum: Autocompletion in Python is a bit tricky12:23
*** efm_ has quit IRC12:23
Signumcreiht: But vim supports a good amount of Python. So in theory it could be possible.12:23
aa_mitsuhiko: well the webmaster stole the design from somewhere12:23
aa_I like dumb auto-completion12:24
mitsuhikohaha12:24
* mitsuhiko likes ^N12:24
aa_plain old vim control-n12:24
aa_snap12:24
SignumYep, I use that, too. And I have an ipython window open to explore my stuff. "paster shell" with ipython actually.12:25
creihtcode completion in python is highly over rated :)12:25
mitsuhikoindeed12:25
mitsuhikoalthough the vim omni completion handles it quite well12:25
aa_one thing I have been playing with is a front-end to all these things like paster, cherrypy, django-admin etc12:25
SignumJust for show and tell to "-q" my coworker who's always telling me about visual studio. :)12:25
aa_to be fair, visual studio is awesome12:25
aa_as an IDE author I can only gape in amazement12:26
SignumBut they don't have vim. :)12:26
aa_oh but they could, and should. EMbedding vim on windows is actually easy12:26
mitsuhikoaa_: there are vim plugins var various ides12:26
SignumIt hurts though when the above coworker tells me that Python is actually the same as Python... just with minor syntactical differences. :(12:26
Signumerrr...12:27
Signums/Python/Visual Basic .NET/12:27
aa_well, he is clearly wrong about that :P12:27
creihtThe nice thing about Komodo Edit is that it has some decent vi key bindings :)12:27
creihtand emacs as well if you feel like contorting yourself so :)12:27
mitsuhikocreiht: the nice thing about vim is that it has vim key bindings12:27
mitsuhikoand writing plugins is sooooo fucking easy12:27
creihthaha12:27
* aa_ would be interested in seeing what vi bindings are ;ole12:28
SignumI fell in love with vi when (15 years ago at university) those admins held a course showing us "the only editor you will ever use" (emacs) but didn't have enough fingers to close my accidentally split window. Yeah, right.12:28
mitsuhikogood. now some advertisement: http://www.vim.org/scripts/script.php?script_id=1858 <- mako plugin for vim :D12:28
aa_pida has emacs too now12:28
SignumThey said that vi's only purpose is to fix emacs config files when emacs doesn't start.12:28
Signumaa_: traitor :)12:29
aa_myy programming tutor used to call it "v-eye"12:29
Signummitsuhiko: oh, cool!12:29
aa_Signum: nah, emac susers all say the same thing "emacs don't need no pida-rubbish"12:29
Signumaa_: Emacs users are lucky. They can always extend their editor with lisp. :)12:29
mitsuhikoSignum: i can extend vim with python :p12:30
aa_mitsuhiko: should we call our templates .mako ?12:31
SignumAt least I do.12:31
mitsuhikoaa_: well. i called them .html12:32
SignumAfter all we are no longer in the 8+3 ages.12:32
benbangertholy crap12:32
benbangertipython is sweet12:32
creihtslaps benbangert12:32
benbangerthow come I never tried it out before.... ;)12:32
mitsuhikobenbangert: don't tell me you don't know it...12:32
creihtWhere have you been? :)12:32
benbangertwonder how I could get paster shell to use it12:32
Signumbenbangert: Uhm.... I'm very disappointed in you.12:32
aa_ipython is just a bit too colourful and verbose sometimes12:32
Signumbenbangert: "paster shell" + "ipython" = heaven12:32
*** whit537 has joined #pylons12:32
mitsuhikobenbangert: you could have a look how pocoo does it12:33
benbangertmitsuhiko: pocoo uses ipython when available?12:33
mitsuhikobenbangert: yes12:33
benbangertwell, as long as I can load up the environment, it'd be pretty easy to add to paster shell for Pylons12:33
mitsuhikobenbangert: http://trac.pocoo.org/browser/pocoo/trunk/pocoo/pkg/core/cli.py#L48512:34
mitsuhikohope that helps12:34
creihtThat is awesome12:34
Signumaa_: say... is pyscintilla stricly needed to run PIDA? Debian seems to miss a package of it and I get warnings from time to time.12:36
aa_int: no, not at all required12:36
aa_bah12:36
benbangertoh12:36
benbangertduh12:36
*** __pv has quit IRC12:36
aa_Signum: ^^12:36
benbangertmitsuhiko: silly me, since I copied the TG shell stuff, I already support ipython with paster shell12:37
benbangertlooks like I need to update it though, it threw an error12:37
benbangerthmm, it mostly works, it loaded the objects properly12:38
*** Kush- has joined #pylons12:51
*** ctc_patrick has quit IRC13:04
*** uche has quit IRC13:06
*** matt_good has joined #pylons13:09
*** uche has joined #pylons13:22
Signumaa_: I'm mostly converted to pida already. :)13:25
*** pobrien has quit IRC13:27
matt_goodso to answer my question yesterday about customizing error pages I ended up subclassing the NotAuthorizedError from AuthKit and overrode the make_body method used by paste.httpexceptions to display the error13:30
benbangertouch13:34
benbangertmatt_good: did you email James at all?13:34
*** jolby has joined #pylons13:34
matt_goodno13:35
*** jolby_ has quit IRC13:35
*** pobrien has joined #pylons13:36
benbangertoh, send him an email13:38
benbangert;)13:38
matt_goodwell, for my purposes that worked out pretty well13:40
matt_goodI just wanted to provide a logout link if a user logged in and their account was locked13:40
*** cwells has quit IRC13:44
matt_goodbenbangert: well, I guess I'll be a Mac user soon since that's what my whole team uses :)13:44
matt_goodmaybe I can Bootcamp Ubuntu on it though too13:44
*** gldnspud has quit IRC13:54
*** gldnspud has joined #pylons13:55
CIA-22pylons: bbangert * r1923 /Pylons/trunk/pylons/commands.py: ipython shell now launches properly with banner, removed custom shell as it wasn't doing anything.13:55
benbangertthere ya go guys13:55
benbangertipython now plays a bit nicer with it13:56
*** pobrien has quit IRC13:56
*** fullpony has quit IRC13:58
*** Signum has quit IRC13:59
*** uche has quit IRC14:00
*** Signum has joined #pylons14:03
*** uche has joined #pylons14:04
CIA-22pylons: bbangert * r1924 /Pylons/trunk/ (CHANGELOG pylons/database.py):14:05
CIA-22pylons: * Changed `get_engine_conf` to properly evaluate sqlalchemy echo statement14:05
CIA-22pylons:  when its 'debug'. Fixes #226.14:05
TownCrierpylons: Ticket #226 (Allow SQLAlchemy echo engine option to be set to 'debug' via the config ...) closed <http://pylonshq.com/project/pylonshq/ticket/226#comment:1>14:06
*** pobrien has joined #pylons14:06
*** jolby has quit IRC14:11
*** goibhniu has joined #pylons14:13
Chairosany of you guys apache wizards?14:14
SignumChairos: try14:14
ChairosSignum: ?14:15
*** efm_ has joined #pylons14:15
Chairosbasically, we're getting horrible performance with static files.14:16
SignumChairos: I've been using Apache for 10 years... I just can't promise I know a solution for the problem you'll describe in a minute. :)14:16
creihtChairos: Are you running SSL?14:16
Chairosno14:16
*** jolby has joined #pylons14:16
ChairosWe have a Rails app. Loading the front page loads one dynamic page, and about 20 static files.14:16
Chairoshttp://www.inklesspen.com/long-load.png14:16
creihthow horrible is horrible?14:16
SignumChairos: anything complicated like rewrite rules?14:16
Chairosin this case, it took 10 seconds to load everything.14:16
ChairosSignum: I don't think so, lemmie check.14:16
Chairosit usually hovers around 6-8 seconds.14:17
creihtIs the server paging a lot (memory)?14:17
SignumChairos: or is your firefox perhaps slow? sometimes I get horrible values with firefox,too. especially when webbug is enabled.14:17
ChairosSignum: we get similar results in Safari, etc.14:18
SignumChairos: ok14:18
wiggyis there a trick to make pylons not cache form_result in controllers?14:18
Chairosholy shit, we are 80 megs into swap on this 512 mb machine.14:18
creihtbingo14:18
creiht:)14:18
Chairoswiggy: I'm pretty sure that's the default.14:19
SignumAdd more swap. :)14:19
Chairoswhy the hell are we running clamav? this machine doesn't do any mail.14:19
wiggyChairos: as soon as I add authkit to my project I see form_result being cached14:19
wiggywhich frankly is quite annoying14:19
Chairoswiggy: okay, then the correct question to ask is something more like "is there a trick to make authkit not be broken?", wouldn't it be?14:20
* wiggy retries without authkit to check14:21
*** vednis has quit IRC14:24
wiggyright, as soon as I wrap a controller in authkit middleware form_result is cached14:25
wiggyso the question is 'how to make authkit not do unexecpted things' indeed14:25
*** fintan_ has joined #pylons14:25
*** fintan has quit IRC14:25
TownCrierpylons: Ticket #227 ("paster serve" suppresses helpful greeting under IPython) created <http://pylonshq.com/project/pylonshq/ticket/227>14:28
*** gldnspud has quit IRC14:33
Chairosokay.14:33
ChairosI have 100 megs ram free, now.14:33
Chairosbut it's still taking 8 seconds or so.14:33
*** matt_good has quit IRC14:33
creihtChairos: Have you restarted apache since you freed the memory?14:34
*** damjan has joined #pylons14:34
Chairosyep.14:34
Chairossome files -- it's always different ones -- are taking one or two seconds each to load.14:35
Chairosand they are tiny files usually. one's only half a K.14:35
creihtChairos: Has anything about the pages you are loading changed14:35
Chairoswhere the larger files load in only a few ms.14:35
*** gldnspud has joined #pylons14:35
Chairoscreiht: no, nothing's changed.14:35
creihtie more static files to load?14:35
creihthrmm14:35
Chairosstill the exact same files, exact same file size.14:36
creihtOf the top of my head I'm not sure14:36
ChairosI know we are running apache 2.0 with the prefork mpm, and I think all the MPM config values (StartServers, MaxClients, etc.) are at defaults.14:37
ChairosI don't know enough about apache to know what to adjust first14:37
wiggyif you're short on memory like at replacing apache with lighthttpd14:37
Chairoswiggy: we have 100 megs free ram.14:37
wiggys/like/look/14:37
*** fintan_ has quit IRC14:37
creihtI wouldn't mess with those settings14:38
creihtat this moment14:38
creihtand try to figure out what has caused the recent slowness14:38
Chairoswe're somehow 12 megs into swap even with that free ram, but I don't think 'short on memory' is an issue at the moment.14:38
creihtSince nothing has changed14:38
wiggyChairos: being into swap is not problematic14:38
creihtYeah it will do that14:38
wiggyas long as you are not actively swapping14:38
wiggyvmstat output will show you that14:38
*** jbb666 has quit IRC14:38
creihtyeah14:38
creihtcheck vmstat14:38
creihtunder swap14:39
creihtyou want si and so to hopefully be 014:39
creihtor close to 014:39
TownCrierpylons: Ticket #141 (Pylons new-project template doesn't support other templates) updated <http://pylonshq.com/project/pylonshq/ticket/141#comment:5>14:39
Chairosthey are both 014:39
wiggythan swap is not your problem14:40
*** kg has joined #pylons14:40
Chairoswiggy: like I said.14:40
Chairosanyhow, it's been like this since we uploaded the new version of the site.14:40
Chairostwo weeks ago14:40
creihtWhat changed in the new version of the site?14:41
Chairoslots of new features. we doubled the number of static files being loaded at the front page, I guess.14:41
creihtChairos: Do you have the apache status page enabled?14:42
*** jbb666 has joined #pylons14:42
Chairoscreiht: how would I check?14:42
creihtYou can hit that and see if all of your connections are being exhausted14:42
creihtit will be in your httpd.conf14:42
creihtsearch for status14:42
creihtsomething like that... let me look14:42
creihtIt's been a while14:42
Chairoswe have mod_status loaded.14:43
creihtsee if you can hit14:43
creihthttp://servername/server-status14:43
creihtYou want to see a whole lot of _'s and .'s14:44
Chairosaha, got it working.14:50
Chairoswe have "___W___" and lots of .s14:51
Chairosokay. looks like apparently all the requests are being chained in one keep-alive connection14:52
creihtOk so then the web server connections are not all being consumed then14:53
Chairoswhich makes sense14:53
Chairosit is "___WK__" when I actually reload the front page... still takes around nine seconds to load everything.14:53
* Chairos ponders putting the static stuff on S3.14:55
*** pobrien has quit IRC14:56
*** namaddez has joined #pylons15:02
namaddezhi all15:02
Chairoshey15:02
namaddezI have more of a myghty question15:02
namaddezI have a page that displays a big table of data15:03
namaddezand I want to make a set of links to pages that display only say 50 items per page15:04
namaddezI'm trying to do it all in a myghty template, but I'm having difficulty15:04
Signumnamaddez: consider using the "pagination" webhelper that comes with pylons15:05
namaddezokay, I'll take a look15:05
Signumhttp://pylonshq.com/WebHelpers/module-webhelpers.pagination.html15:05
SignumThe documentation is evil if you ask me. :) But it has the ability to just pull the portion from the database through the power of "lazy loading".15:06
benbangertgah15:07
benbangertwho filed Ticket #227 a few minutes ago?15:07
*** pobrien has joined #pylons15:07
benbangertI put through a patch to fix that an hour ago ;)15:07
namaddezso I would create a Paginator object in the controller and pass something to the template?15:09
Signumnamaddez: yes. you would pass along the iterator. so in the template you'd go "for item in items: ..."15:10
namaddezand I'd also pass something that would create the links to different pages?15:10
TownCrierpylons: Ticket #227 ("paster serve" suppresses helpful greeting under IPython) closed <http://pylonshq.com/project/pylonshq/ticket/227#comment:1>15:10
Signumnamaddez: yes. you would pass around e.g. a "page" parameter for the page the user wants to browse to15:11
Signumnamaddez: I like the "url()" webhelper here. -> h.url(page=10) would give you a URL to the current action just with a "?page=10" added to the URL15:11
Signumnamaddez: webhelpers really save a lot of trouble sometimes.15:12
*** kg has quit IRC15:23
namaddezhmm15:30
TownCrierpylons: Ticket #227 ("paster serve" suppresses helpful greeting under IPython) updated <http://pylonshq.com/project/pylonshq/ticket/227#comment:3> || Ticket #227 ("paster serve" suppresses helpful greeting under IPython) reopened <http://pylonshq.com/project/pylonshq/ticket/227#comment:2>15:30
namaddezso I do something like paginate(mylist)15:30
namaddezand I get an exception15:30
namaddezokay, looks like I need to pass what page I want15:33
benbangertnamaddez: the latest Pylons/WebHelpers will use a page var from Routes or the query params if available15:34
benbangertjust updating your WebHelpers should do it15:34
*** rope has left #pylons15:34
benbangertmitsuhiko: any idea how to retain the iPython shell banner AND add your own? ;)15:35
mitsuhikobenbangert: well. the IP instance has a BANNER_PARTS list15:38
mitsuhikoyou could try to modify that15:38
mitsuhiko(before starting the IP)15:39
CIA-22pylons: bbangert * r1925 /Pylons/trunk/pylons/commands.py: Fixed handling of banner with ipython so that the ipython banner is retained. Fixes #227.15:42
TownCrierpylons: Ticket #227 ("paster serve" suppresses helpful greeting under IPython) closed <http://pylonshq.com/project/pylonshq/ticket/227#comment:4>15:42
*** creiht has quit IRC15:48
*** jolby_ has joined #pylons15:52
*** jolby has quit IRC15:53
benbangertmitsuhiko: IP.BANNER was what I wanted15:58
*** pobrien has quit IRC15:58
benbangertthat seems to work nicely15:58
mitsuhikoso. offline for today15:58
mitsuhikomy eyes hurt. too much javascript :D15:59
benbangertlol16:00
elefthmitsuhiko, JavaScript can be very pleasant to work with after you read a bit of Douglas Crockford and watch his videos on YUI Theatre :-)16:00
mitsuhikoelefth: well. i love javascript16:01
mitsuhikoand jquery rocks16:01
elefthmitsuhiko, if you haven't already done so that is16:01
mitsuhikobut you shouldn't do some things in javascript nonetheless (for example search engines)16:01
mitsuhikoor search interfaces. whatever16:01
elefthmitsuhiko, it depends on the project requirements I guess.16:02
mitsuhikoelefth: well. offline search16:03
elefth:-)16:03
xorAxAxmitsuhiko: that sounded differently yesterday!16:05
xorAxAxyesterday you praised JS over any language you know, esp. python16:05
xorAxAx:-)16:05
mitsuhikoxorAxAx: huh? i just said that pypy2javascript is not an option for me16:05
xorAxAxwell, you said because JS has better closures16:06
mitsuhikoindeed16:06
mitsuhikoxorAxAx: well. the problem with that code now is that awful stemmer16:06
benbangertthe Python closures should catch up to JS with Py3.016:08
benbangertthe nonlocal keyword helps out for that16:08
xorAxAxyes16:09
*** Kush- has quit IRC16:10
*** goibhniu has quit IRC16:11
CIA-22pylons: bbangert * r1926 /Pylons/trunk/ (CHANGELOG docs/application_configuration.txt): * Fixed doc references to config['app_conf']. Fixes #116.16:19
*** jolby_ has quit IRC16:19
TownCrierpylons: Ticket #116 (app_conf and global_conf baffle me) closed <http://pylonshq.com/project/pylonshq/ticket/116#comment:18>16:20
*** deitarion has quit IRC16:20
*** deitarion has joined #pylons16:21
namaddezhi, another question16:22
*** jolby has joined #pylons16:22
namaddezhow do I rerender a page with the same content?16:24
*** uche has quit IRC16:25
damjannamaddez: ctrl-R?16:26
namaddezwell16:26
namaddezI'm working on paginating some data and I wanna do it without hitting the database again16:26
namaddezso I pass the whole list of data to the template, the template displays some of it16:27
namaddezthen to get the next page, the user clicks a link which just rerenders the page with the next set of results16:27
namaddezis this even possible?16:27
damjannamaddez: you could do it with javascript (aka AJAX)16:28
namaddezotherwise I have to hit the controller again?16:28
damjannamaddez: but if the list is big, and most hits don't browse on next pages, that may be inefficient16:28
damjannamaddez: otherwise yes16:28
namaddezokay, thx16:32
*** deitarion has quit IRC16:35
*** gjh has quit IRC16:45
*** uche has joined #pylons16:46
*** vednis has joined #pylons16:47
*** marcin_ant has joined #pylons16:47
*** deitarion has joined #pylons16:48
namaddezthanks for your help guys16:56
namaddezI just bypassed the whole webhelpers pagination thing16:56
benbangertoh?16:56
namaddezand wrote it up myself -- easier to understand...16:56
benbangertohhh, if you want to avoid the db hit, I'd suggest using the YUI pagination stuff16:56
Chairoswell, looks like I'm going to RailsConf in May.16:57
*** efm_ has quit IRC17:03
namaddezYUI pagination?17:03
*** zzzeek_ has quit IRC17:10
benbangertnamaddez: yea17:10
damjannamaddez: Yahoo UI widgets17:11
*** efm_ has joined #pylons17:17
elefthhm, I have docutils 0.4.1 installed yet pudge insists on downloading it (and times out).17:17
benbangertI think it requires the dev version of docutils17:18
benbangertand make sure you have Kid 0.9.2 or below17:18
benbangertI think Kid 0.9.3 and higher doesn't work with pudge17:18
benbangertor 0.9.4, I forget which one17:18
elefthah ok17:19
elefththanks ben17:19
benbangerthmmm, I think I can tweak pudge to use pkg_resources so that it'll use Kid 0.9.2 even if you have a later Kid installed as well17:19
elefthwhy such a dependency :-/17:20
benbangertcause pudge uses Kid for doc-gen17:21
benbangertannoying.... I know :)17:21
elefthI mean why 0.9.217:21
benbangertoh, 0.9.4 or 0.9.3 changed something17:21
benbangertwhich broke pudge, and I don't really know how Kid works, or how pudge uses Kid... so I was unable to see how to fix the bug17:21
elefthI see17:22
benbangertideally someone who knows Kid well could fix it ;)17:22
elefthlet's hope so17:22
benbangertbtw17:27
benbangertif anyone would like to help out with 0.9.517:27
*** digitaljhelms has joined #pylons17:28
benbangertI believe its ready for release right now, if anyone would like to get the latest svn and run their project with it to see if there's any gotchas, that'd be appreciated. ;)17:28
benbangertIt has more unit tests in it that 0.9.4.1, so I don't foresee any issues.17:28
*** benbangert has quit IRC17:29
CIA-22pylons: bbangert * r1927 /Pylons/trunk/setup.py: Changing dependencies to latest stable releases.17:30
*** marcin_ant has quit IRC17:44
*** matt_good has joined #pylons17:48
*** Chairos has quit IRC17:57
*** windle has joined #pylons18:00
*** namaddez has quit IRC18:00
*** Chairos has joined #pylons18:08
*** bradmw has quit IRC18:11
*** cwells has joined #pylons18:30
*** efm_ has quit IRC18:37
*** nir has quit IRC18:57
*** damjan has quit IRC18:59
*** rob5 has joined #pylons19:00
*** jbb666 has quit IRC19:04
*** pobrien has joined #pylons19:06