[web2py] skyrocketing memory. How to pinpoint the problem?

2013-02-04 Thread pumplerod
I had been having critical memory overflow problems and finally saw a post about a memory leak in the version I was using (2.1.x) so I have updated to the latest stable version (2.3.2), however I am still seeing my memory climb until the machine crashes. I'm using web2py as my interface which i

[web2py] Re: skyrocketing memory. How to pinpoint the problem?

2013-02-04 Thread pumplerod
To further elaborate. I am running my web2py instance on a VPS at dreamhost.com with a memory allocation of 4Gig. It is running under passenger. On Monday, February 4, 2013 12:16:38 PM UTC-8, pumplerod wrote: > > I had been having critical memory overflow problems and finally saw

[web2py] Re: skyrocketing memory. How to pinpoint the problem?

2013-02-04 Thread pumplerod
requesting a json object response. *domain/app/controller/func* This also made the memory peak to a point of crashing the machine. is this a leak or do I need to specify some sort of cache for web2py? On Monday, February 4, 2013 12:19:37 PM UTC-8, pumplerod wrote: > > To further elabora

[web2py] Administrator Password Field not shown

2012-11-24 Thread pumplerod
I am wrestling with trying to get into the admin site for web2py. After following several examples on line to no avail I finally decided to just disable the security so I could at least see what it looks like. I was able to get to the admin login page, however, there is no form field showing a

[web2py] Re: Sharing a database between apps

2012-11-25 Thread pumplerod
Sorry, I'm a little unclear on the manual explanation. as an example, given app1 and app2 I want to have app2 share the database I have built in app1 So do I change the app2/models/db.py file to show: db = DAL('sqlite://storage.sqlite',migrate='false') ? and include all other myModel.py files

[web2py] Re: Sharing a database between apps

2012-11-26 Thread pumplerod
Ok, thanks. I guess that makes sense. But then how do the models/*.py files fit it? Are these only used for migration? What if I want to have different auth tables but share all others? --

[web2py] Re: Sharing a database between apps

2012-11-27 Thread pumplerod
This is all great. Thank you so much. I did have to use migrate_enabled=False rather than just migrate=False otherwise I got a complaint that the auth_user table already existed. Which leads me to my followup... How do I keep separate auth tables for each app? or potentially other tables th

[web2py] Re: Web2py using json

2012-11-27 Thread pumplerod
Could you elaborate on how you accomplished this? I'm also trying to import a json object into my app and parse it. I'm not sure what that process entails. On Friday, July 13, 2012 1:34:41 AM UTC-7, Akash Kakkar wrote: > > Thanks Vinicius, > > Wish I had read your hint earlier, a GET did the

[web2py] validating a query against the database

2012-11-28 Thread pumplerod
I'm having trouble finding a clear example of this and I feel like what I'm doing is far more complicated than it should be. I'm sure someone in this group can show me a more elegant solution... I have a table of Providers and a table of Games. Each provider can have multiple games so I also

[web2py] Re: validating a query against the database

2012-11-28 Thread pumplerod
o the providers_game table > ).select().first() > > if not result: > return 'trying to fake keys' > else: > return 'good to go' > > > On Wednesday, November 28, 2012 11:58:34 PM UTC+1, pumplerod wrote: >> >> I'm having trouble

[web2py] What causes an hang on insert?

2012-11-28 Thread pumplerod
I'm trying to perform an insert to a table I know exists but when I do my http request just hangs for a long time and then says "Invalid Request" This takes up to 30 seconds. When I check the table through the admin page I see that it did actually insert a new record. I've been able to create a

[web2py] Re: What causes an hang on insert?

2012-11-28 Thread pumplerod
Think I found the hangup. Not sure why. to see what it was doing I had this... item = db.users.insert(name="newName") return item when I change the return to.. return item.id no more hang time. On Wednesday, November 28, 2012 6:04:10 PM UTC-8, pumplerod wrote: > > I

[web2py] is there a way to not use crud.archive

2012-12-05 Thread pumplerod
I thought by deleting the _archive tables I would no longer be using it. However now when I try and submit a change to the db I get this error: table myTable_archive already exists I'm just trying to learn this system and I don't feel I really need to archive things just yet. getting r

[web2py] Re: is there a way to not use crud.archive

2012-12-05 Thread pumplerod
: > > seems that web2py is trying to create those tables: how exactly did you > "delete" them ? > > On Wednesday, December 5, 2012 8:18:57 PM UTC+1, pumplerod wrote: >> >> I thought by deleting the _archive tables I would no longer be using it. >> However n

[web2py] SQLFORM and auth() what exactly is auth() doing? and can I use it to access other tables?

2012-12-05 Thread pumplerod
Getting my feet wetter, I've been reading about generating forms. Very cool stuff. Before I break things too badly though I thought I'd ask: I see that when I create a new app, web2py automatically generates a user view and user() function in the default.py file. All that does is return dict(f

[web2py] Re: is there a way to not use crud.archive

2012-12-05 Thread pumplerod
de to the > controllers. > > On Wednesday, December 5, 2012 2:18:46 PM UTC-6, pumplerod wrote: >> >> I went through the admin interface and deleted from there. Then I went >> into my models/*.py files and made sure no _Archive tables were being >> created. >> When I

[web2py] multiple apps with shared auth tables but can only login through one app

2012-12-05 Thread pumplerod
I have several apps running and am successfully able to add users to the auth_user table during registration. I keep track of which app they registered through to setup certain permissions. This all seems to work fine. However, I am only able to login the user via one app (the initial one I

Re: [web2py] multiple apps with shared auth tables but can only login through one app

2012-12-06 Thread pumplerod
o > Web Developer > ovid...@gmail.com > ovidio...@itjp.net.br > ITJP - itjp.net.br >83 8826 9088 - Oi >83 9336 3782 - Claro > Brasil > > > &g

Re: [web2py] multiple apps with shared auth tables but can only login through one app

2012-12-06 Thread pumplerod
oup. How do I get around this? On Thursday, December 6, 2012 9:55:08 AM UTC-8, pumplerod wrote: > > maybe I'm missing something. I thought this is what I was doing by > placing each user in a separate group based on the app they logged in with. > > I do see mention of t

[web2py] routes_in not responding

2013-01-02 Thread pumplerod
for an api that is accessing my site I need to have a crossdomain.xml file at the root level so I created a redirect for it in routes.py but it doesn't seem to work. Do I have the syntax correct? This is my routes.py file... (if I go to http://myUrl/dispatch/static/crossdomain.xml everything

[web2py] Inline image generation with matplotlib

2011-12-05 Thread Pumplerod
Is there a way, or example, I could be pointed to which demonstrates using mathplotlib to plot upon request without writing the image file to disk? I'm able to create my plot and save it to the static/images directory which then I can load within my view, however I would like to be able to generat

[web2py] Re: Inline image generation with matplotlib

2011-12-05 Thread Pumplerod
t_png(stream) >     return stream.getvalue() > > then use {{=IMG(_src=URL('myimage'))}} to include it. > > On Dec 5, 10:32 pm, Pumplerod wrote: > > > > > > > > > Is there a way, or example, I could be pointed to which demonstrates > > using mathplotli

[web2py] stepofweb theme layouts?

2015-11-10 Thread pumplerod
I'm coming over from PHP where I was using the "Smarty" theme template from stepofweb . I'd like to build this into my web2py site. Has someone already done this? Or is there a best practice for implementation? For example, should I try and create a "

[web2py] Re: Current status of adapting OrientDB for web2py

2015-03-03 Thread Pumplerod
I'm curious if anyone has done any more to integrate OrientDB with the DAL. Or if not, if there is a guide of some sort for creating an adapter. I'm beginning to design a site around OrientDB and rather than keeping track of two systems one for Auth and one for the rest of my data it seems lik

[web2py] Re: Current status of adapting OrientDB for web2py

2015-03-05 Thread Pumplerod
I had a look, thanks. Wow. I think I would need a much better understanding of all the parts before I could take that on. What are the odds I could make a contribution toward web2py in order to fast-track the adapter? On Monday, February 13, 2012 at 9:54:05 AM UTC-8, Nolan Nichols wrote: > >

[web2py] project hire

2015-03-15 Thread pumplerod
The web2py support page lists experts4solutions as a group to inquire about consulting or development, however, their home page has no method of contact? My coding chops are really just good enough to get me into trouble and I'm interested in hiring someone that could create at least some of th

[web2py] SQLForms DAL error

2015-03-15 Thread pumplerod
I've found others with this similar error, however the solutions don't seem to apply as far as I can tell in my simplified instance... # dp.py db.define_table('brands', Field('brand_name', type='string', requires=IS_NOT_EMPTY(), label=T('brand_name')), migrate=True) # in

[web2py] Re: SQLForms DAL error

2015-03-17 Thread pumplerod
reference it however I get the error. As far as I can tell there is only one reference to db=DAL(...) in my code. On Sunday, March 15, 2015 at 4:24:15 PM UTC-5, pumplerod wrote: > > I've found others with this similar error, however the solutions don't > seem to apply as far a

[web2py] Re: SQLForms DAL error

2015-03-17 Thread pumplerod
My Mistake. I did indeed find the db=DAL(...) elsewhere located. Thank you so much for letting me know what to look for. On Sunday, March 15, 2015 at 4:24:15 PM UTC-5, pumplerod wrote: > > I've found others with this similar error, however the solutions don't > seem to ap

[web2py] Re: Setting hidden fields with custom SQLFORMs

2015-03-17 Thread pumplerod
Is there something else which needs to be setup to accomplish this? I currently have... db.define_table('brands', Field('brand_name', type='string', requires=IS_NOT_EMPTY(), label=T('Brand Name')), Field('active', type='boolean', label=T('active'))) form = SQLFORM(db

[web2py] project hire

2015-03-17 Thread pumplerod
As per above, I wanted to start with OrientDB integration. I figured that was something that the whole comunity could benefit from. Depending on cost I would break out other aspects to be worked on such as orders and credit card processing, thrid party API integration, etc... I have a Bootstr

[web2py] Re: Setting hidden fields with custom SQLFORMs

2015-03-18 Thread pumplerod
; On Tuesday, March 17, 2015 at 10:38:18 AM UTC-7, pumplerod wrote: >> >> Is there something else which needs to be setup to accomplish this? I >> currently have... >> >> db.define_table('brands', >> Field('brand_name', type='string&#

[web2py] Image upload, translate, crop, resize options?

2015-03-20 Thread pumplerod
I'm trying to find an easy to implement, UI friendly method for allowing users to upload an image at the time of creating their account which will provide translation, resize, and crop options for their profile pic. I've read through a number of separate jQuery options and have tried to impleme

[web2py] SQLFORM.factory and inserting records...

2015-03-20 Thread pumplerod
I'm using SQLFORM.factory to generate my form which, upon submit, is passing validation and I see that the expected variables are returned correctly, however no insert is made to the database. def brand(): auth.settings.register_onaccept = _register_brand if request.args(0) == 'register':

[web2py] Re: Image upload, translate, crop, resize options?

2015-03-20 Thread pumplerod
h 20, 2015 at 12:54:49 PM UTC-7, pumplerod wrote: >> >> I'm trying to find an easy to implement, UI friendly method for allowing >> users to upload an image at the time of creating their account which will >> provide translation, resize, and crop options for the

[web2py] Re: SQLFORM.factory and inserting records...

2015-03-20 Thread pumplerod
Thank you. So is there a way to run a post process after SQLFORM.factory or do I simply keep the code within the original function because this seems to work... def brand(): if request.args(0) == 'register': form = SQLFORM.factory(db.auth_user,db.brands, fields=['brand_name', 'br

[web2py] Where do upload files get stored?

2015-03-20 Thread pumplerod
I've just gotten uploading an image file with SQLFORM.factory to work (thanks to the posts here in this forum), but I have to admit I'm totally confused. I specified the uploads directory in which to store the image SQLFORM.factory(db.auth_user,db.brands, Field('brand_logo', 'upload', uploa

[web2py] Re: Where do upload files get stored?

2015-03-21 Thread pumplerod
t. > Perhaps the 'upload/' instead of 'upload' is creating a problem? > > On Saturday, 21 March 2015 00:30:44 UTC-5, pumplerod wrote: >> >> >> I've just gotten uploading an image file with SQLFORM.factory to work >> (thanks to the posts

[web2py] Re: Where do upload files get stored?

2015-03-21 Thread pumplerod
uploaded file into a root level uploads directory. On Saturday, March 21, 2015 at 3:53:29 PM UTC-5, pumplerod wrote: > > Well, I found the images. they are in the parent directory of > applications. meaning the root web2py directory. I'm not sure why. is > seems as though the os

[web2py] Re: Where do upload files get stored?

2015-03-21 Thread pumplerod
I found the problem. In my models file I had declared the model to have uploadfolder='uploads/' Evidently this does not get overridden when I declare the field in the SQLFORM.factory On Saturday, March 21, 2015 at 4:04:59 PM UTC-5, pumplerod wrote: > > It seems part of my er

[web2py] Re: Replace 'Welcome' next to username without modifying source code.

2015-03-22 Thread pumplerod
Did you ever get this working? When I attempt the insert method as Anthony mentioned I wind up with the html being displayed along with the user name. On Friday, October 17, 2014 at 10:46:56 PM UTC-5, LoveWeb2py wrote: > > Thanks again, Anthony. Thank you for all of the time you dedicate. > > On