[web2py] DAL continual memory increase (relatively easy fix)

2011-10-18 Thread Dragonfyre13
First, this post actually already talks about it (found after doing my own profiling with guppy/heapy): http://groups.google.com/group/web2py/browse_thread/thread/534961af8e972300/212d7a59f2a7f239 The general idea is that all sql statements are stored as is in db._timings. This isn't an issue,

[web2py] Re: Freeing the DAL memory, outside web2py

2011-10-18 Thread Dragonfyre13
Could your issue be related to this: http://groups.google.com/group/web2py/browse_thread/thread/c85577827584952f You should be able to use (with some small difficulty in the interface) heapy to trace where you are using memory. Where I traced it down to was db._timings. That attribute seems safe

[web2py] Re: SOCKsify all connections from web2py server

2011-10-18 Thread Dragonfyre13
Sounds like you're more concerned with outbound connections. Checkout these (I've only played briefly with the first): http://socksipy.sourceforge.net/ http://sourceforge.net/projects/pysocks/ Discussion here: http://stackoverflow.com/questions/2537726/using-urllib2-with-socks-proxy Unless I'm

[web2py] Decorated Profiler - New Profiling library for python (thread, greenthread and WSGI friendly)

2011-06-10 Thread Dragonfyre13
path per callable. it's up here, anyone who logs bugs against it, or tries it out and likes it, I'd love some feedback (good, bad, or otherwise). Wiki has some info in there along with screenshots, though I know the docs aren't amazing. https://bitbucket.org/dragonfyre13/decorated-profiler Here's

[web2py] No tickets on XMLRPC 500 error

2011-01-25 Thread Dragonfyre13
It's been this way quite some time, and I'm sure I'm not the only one to wish there were tickets opened for errors during service calls, but here goes. Is there a reason why there's a ticket opened when executing a controller, model, view, etc. normally, but no ticket opened when (for example) I

[web2py] Re: SOAP service - repeating elements/sets of elements

2011-01-10 Thread Dragonfyre13
, and there's no instability I can find. I did a code review with 2 internal resources here on the modifications (however small) and tested as completely as possible (I'm a Software Test Engineer, testing comes naturally). On Jan 6, 7:34 pm, Dragonfyre13 dragonfyr...@gmail.com wrote: What you say

[web2py] Re: SOAP service - repeating elements/sets of elements

2011-01-06 Thread Dragonfyre13
Reingart reing...@gmail.com wrote: On Mon, Jan 3, 2011 at 8:49 PM, Dragonfyre13 dragonfyr...@gmail.com wrote: Thought this might be interesting to someone, as it took me digging through the  pysimplesoap code to figure out. So I'll record it here for posterity. In web2py, I needed

[web2py] SOAP service - repeating elements/sets of elements

2011-01-03 Thread Dragonfyre13
Thought this might be interesting to someone, as it took me digging through the pysimplesoap code to figure out. So I'll record it here for posterity. In web2py, I needed a soap service that can have one to many sets of a a particular element. This caused some issues, as there's not really a

[web2py] Re: Cache stored at request, does not sync with other threads until new request

2010-12-23 Thread Dragonfyre13
: It occurs to me, I'm using uwsgi. I'm assuming cache.ram is per process, meaning that if my Ajax side and xmlrpc side are not on the same process, this will completely not work properly. I'll try flipping over to cache.disk tomorrow morning to verify. On Dec 21, 2010 5:20 PM, Dragonfyre13 dragonfyr

[web2py] Re: Cache stored at request, does not sync with other threads until new request

2010-12-23 Thread Dragonfyre13
Nevermind, I wasn't clearing the cache in one place, so cache simply didn't get updated with the right value when it needed to. On Dec 23, 9:27 am, Dragonfyre13 dragonfyr...@gmail.com wrote: So I've gone back and forth on this again and again. It looks like cache.ram being process bound (so

[web2py] Cache stored at request, does not sync with other threads until new request

2010-12-21 Thread Dragonfyre13
At least I think the subject seems to define the behavior. I have a function that exposes as an XMLRPC service. It puts something in a DB, and then polls to see if there is a response to it from another system talking to that same DB. (yes I realize that polling a DB is a bad thing but necessary

[web2py] Re: DAL select cache, and update

2010-12-16 Thread Dragonfyre13
If this is still the same answer as in 2008, has any thought been given to modifying/adding the behavior mentioned? On Dec 15, 7:42 pm, Dragonfyre13 dragonfyr...@gmail.com wrote: I see some discussion from back in 2008 on the subject, but hoping something might have changed. Is there any way

[web2py] DAL select cache, and update

2010-12-15 Thread Dragonfyre13
I see some discussion from back in 2008 on the subject, but hoping something might have changed. Is there any way that I can cache a select, and then on update, automatically remove any cached selects on this table/field? I see that I can remove cache for a specific query like this:

[web2py] DB transaction isolation

2010-10-04 Thread Dragonfyre13
I was having a discussion with my DBA on why the DB he tuned for another project ran so much better than the one tuned for general use (I was previously on the dedicated server, now on the general use server). He said the configuration was the same, with one change. Transaction isolation level was

[web2py] Spawning WSGI server and web2py

2010-10-04 Thread Dragonfyre13
Anyone used this? Looks absolutely awesome for what I'm doing (heavy ajax/comet type hits, easily thousands of open connections at a given time, etc.) http://pypi.python.org/pypi/Spawning There are of course alternatives out there, but wondering if anyone had ever played with this before.

[web2py] Uploaded file streaming

2010-04-16 Thread Dragonfyre13
I want to be able to stream a file that's uploaded via an upload field. So far, I haven't really found a way to do this, beyond grabbing the file name out of filedata, and then sticking static directory path on the front, which is both kludgy, and I have to think the wrong way of going about it.

[web2py] Re: Uploaded file streaming

2010-04-16 Thread Dragonfyre13
updated that one line to this, but it's not any better, just slightly more portable. Any insights? return open(./applications/ + request.application + /uploads/ + rows[0].filedata).read() On Apr 16, 12:49 pm, Dragonfyre13 dragonfyr...@gmail.com wrote: I want to be able to stream a file that's

[web2py] Re: Feature request: xlstoweb2py [was: Where do you use web2py?]

2010-03-16 Thread Dragonfyre13
Well, my suggestion would be forget the XLS format for the first iteration. Use CSV. If you're not concerned with formulas, that's the cleanest route, and included in the default python install. (csv module). I use it all the time for my load test frameworks I build. It's not only very easy to

[web2py] Re: did you know?

2010-03-04 Thread Dragonfyre13
In that case, I have to ask. Does this have a dependency on nltk? I've been reading a LOT on NLTK lately, and it does almost exactly this in it's most basic form. On Mar 4, 12:06 pm, Thadeus Burgess thade...@thadeusb.com wrote: I'm pointing my Learner to the web2py mailing list :)

[web2py] Re: New features not documented in Book (2 ed)

2010-03-03 Thread Dragonfyre13
If it's untarred over the top of the old one, any files that are not in the new tar file will be left there. Since an app is supposed to kind of be self contained, shouldn't it remove the old app, and then untar to the directory? On Feb 16, 11:08 am, Jonathan Lundell jlund...@pobox.com wrote: On

[web2py] Re: zen html

2010-03-01 Thread Dragonfyre13
In my (limited) playing around with it, I just used it as a fast auto complete for HTML. There's nothing new to learn, nothing new to use, unless you want to use the auto complete feature, which is a Ctrl+ [button] combination when in editarea. It's actually quite slick, and a pretty low learning

[web2py] Re: can't get SSL/admin working on LAN (apache + mod_wsgi)

2010-02-26 Thread Dragonfyre13
It looks like you're denying access to the admin dir in the apache conf. Location /admin Deny from all /Location What it's setup to do is go to https://yourserver/admin port 8080 has admin disabled, which (per the security gremlin in me) is accurate behavior

[web2py] Re: Download and Update Progress +a general question

2010-02-24 Thread Dragonfyre13
So, let me make sure I understand this right, you want to stream the response, from the server, to the browser. (have something in the controller display realtime like the print command, instead of display all of the information at once) Or, are you talking about actually using print, and having