[web2py] DAL/Postgres not creating a table

2012-07-20 Thread Marek Mollin
Hey, Problem is as follows. I start a clean db in psql. Test the connection + delete all the /databases files to fresh with remote db. When I launch index page tables start getting created then I get error regarding some table is missing. I check sql.log and it did not even start creating the ta

Re: [web2py] DAL/Postgres not creating a table

2012-07-21 Thread Marek Mollin
e 1386, in log_execute ret = self.cursor.execute(*a, **b) ProgrammingError: relation "delivery_type" does not exist W dniu piątek, 20 lipca 2012 23:30:00 UTC+2 użytkownik rochacbruno napisał: > > > are you sure the migrate is not False in db = DAL(...) ? > > try including migr

Re: [web2py] DAL/Postgres not creating a table

2012-07-21 Thread Marek Mollin
yet exist (i.e. Field('detail_id', > db.details) without the db.details be defined already). > > > On Saturday, July 21, 2012 11:55:10 AM UTC+2, Marek Mollin wrote: >> >> other info: >> I am using postgres 9.1 >> >> No migrate is not set to false

[web2py] router(domains) + routes.py

2012-07-31 Thread Marek Mollin
Hello, I have certain problems configuring router + routes.py. First of all I had a problem that was mentioned earlier routes.py file was not working while using nginx + uwsgi. Nevertheless I decided to update to trunk and just copied admin from stable (since there were some problems with it...

Re: [web2py] uWSGI and routes.py

2012-08-02 Thread Marek Mollin
I can give some answer. Ran into the same issue but decided to not bother with logging instead switched to use trunk version(+admin from stable) and it works perfectly fine. So whatever that was it now seems fixed. W dniu czwartek, 2 sierpnia 2012 05:39:03 UTC+2 użytkownik Massimo Di Pierro nap

Re: [web2py] uWSGI and routes.py

2012-08-02 Thread Marek Mollin
nk has bugs? > > On Thursday, 2 August 2012 09:32:49 UTC-5, Marek Mollin wrote: >> >> I can give some answer. Ran into the same issue but decided to not bother >> with logging instead switched to use trunk version(+admin from stable) and >> it works perfectly fine. So

[web2py] SSL/https nginx slow static content (images)

2012-08-02 Thread Marek Mollin
Hello, Anyone have any ideas why the same website over ssl is loading much slower. I mean mostly images and static content. I am aware of small overhead on first request with ssl and handshakes, but images and other static files load noticeably slower. I am running on nginx and ubuntu 12.04.

Re: [web2py] SSL/https nginx slow static content (images)

2012-08-02 Thread Marek Mollin
Managed to notice already. Thanks. Any simple way of applying that is it in any way odd from a website to try and do it? W dniu czwartek, 2 sierpnia 2012 19:15:51 UTC+2 użytkownik Jonathan Lundell napisał: > > On 2 Aug 2012, at 10:02 AM, Marek Mollin wrote: > > Anyone have any i

[web2py] Compute field update/update_record problem

2012-08-08 Thread Marek Mollin
Hello, I know this has been flagged in past. Still I could not find a clean solution to handle such events. When either updating or updating record if fields/keys used in compute are not provided it throws a KeyError. Ok I can handle that no problem. Try,except: pass, but If I do pass it assigns

[web2py] Field.Lazy attaching unbound Class method

2012-08-25 Thread Marek Mollin
Hello, I have a problem with a construct like that: db.define_table('test', Field('name'), ) class Test(object): def get(row): return row.name def get_hello(row, greeting): return '%s %s' % (greeting, row.name) db.test.get = Field.Lazy(Test.get) db.test.get_hello =

[web2py] Re: Field.Lazy attaching unbound Class method

2012-08-25 Thread Marek Mollin
> return row.name > > Anthony > > On Saturday, August 25, 2012 11:33:06 AM UTC-4, Marek Mollin wrote: >> >> Hello, >> >> I have a problem with a construct like that: >> db.define_table('test', >> Field('name'),

Re: [web2py] Re: Field.Lazy attaching unbound Class method

2012-08-25 Thread Marek Mollin
led internally with a row as an argument. > > And you should be using row.tablename.fieldname (instead just > row.fieldname) > > Marin > > On Sat, Aug 25, 2012 at 6:20 PM, Marek Mollin > > wrote: > >> Still not working. >> When I add static I can do: >&g

[web2py] Re: Submit two SQLFORMs in one go

2012-08-29 Thread Marek Mollin
Couple of ideas. There have been some hacks about just appending fields from one SQLFORM with another. I would recomend using SQLFORM.factory. You can add fields just using your model. SQLFORM.factory( db.table.name, db.table.otherfield, db.anothertable.anotherfield, ) If you want it to be ed

[web2py] Re: Submit two SQLFORMs in one go

2012-08-29 Thread Marek Mollin
s. Your idea of changing the default values is nice and actually > could solve this lack but from my point of view it would be nice to have > something better already built-in in SQLFORM.factory. > > Cheers, > Paolo > > > On Wednesday, August 29, 2012 4:49:18 PM UTC+2, Ma

[web2py] Re: web2py 2.0.2 is out

2012-08-30 Thread Marek Mollin
Hmmm... nohup should do similar thing... nohup python web2py.py -K appname will make it a background task on linux W dniu czwartek, 30 sierpnia 2012 07:23:29 UTC+2 użytkownik Michael Toomim napisał: > > I'm really excited about the new scheduler -X option. > > What do -E -b -L do? I don't see th

[web2py] Re: web2py 2.0.2 is out

2012-08-30 Thread Marek Mollin
Big work. We are all really thankful. Especially lazy_tables and triggers + audit ! W dniu czwartek, 30 sierpnia 2012 05:41:34 UTC+2 użytkownik Massimo Di Pierro napisał: > > After 5 months. It is done. This is the most waited and the most > feature-packed release. > > I am sure we'll find some

[web2py] Could we add testRunner capabilities to admin testing interface?

2012-09-04 Thread Marek Mollin
Hey, I really love testing in admin. I mean its out-of-thebox zero conf one click doctesting. I love it. I dont have to get into massive unittest module(which is great, but for differently scoped applications). However there is one thing I love in testRunner. The ability to replicate a db and p

[web2py] Relocated admin using router, problem with appadmin

2012-09-09 Thread Marek Mollin
Hello, I ran into small problem. I have web2py 2.08 running nginx + postgres. I configured routes using parametric system. In routes.py I defined domains and assigned admin to seperate domain. By domain i mean actually subdomains... test.app.com -> testing environment using seperate db app.com ->

Re: [web2py] Relocated admin using router, problem with appadmin

2012-09-09 Thread Marek Mollin
So if I skip the admin.app.com line domain I will get: test.app.com/admin app.com/admin all working fine? W dniu niedziela, 9 września 2012 22:01:12 UTC+2 użytkownik Jonathan Lundell napisał: > > On 9 Sep 2012, at 12:42 PM, Marek Mollin > > wrote: > > Hello, > I ran in

Re: [web2py] Relocated admin using router, problem with appadmin

2012-09-10 Thread Marek Mollin
Apparently, I have to domains there is no way for me to access admin. I get gateway timeouts. W dniu poniedziałek, 10 września 2012 01:27:02 UTC+2 użytkownik Marek Mollin napisał: > > So if I skip the admin.app.com line domain I will get: > test.app.com/admin > app.com/admin >

Re: [web2py] Relocated admin using router, problem with appadmin

2012-09-10 Thread Marek Mollin
To rephrase: I need a sample routes.py with router between two domains (subdomains) getting two seperate applications with admin access enabled. I urgently need help, thanks. W dniu poniedziałek, 10 września 2012 11:17:57 UTC+2 użytkownik Marek Mollin napisał: > > Apparently, > I

[web2py] Re: web2py login in main view

2012-09-10 Thread Marek Mollin
yes def index(): form = auth.login(next=URL(request.env.http_referer)) return (form=form) // view default/index.html {{=form}} or read on custom forms and apply it W dniu poniedziałek, 10 września 2012 12:41:05 UTC+2 użytkownik Yebach napisał: > > Hello > > I would like to have

[web2py] Re: Sorting ajax return

2012-09-10 Thread Marek Mollin
bear in mind if you have belongs in query(rdbms optimizes ids when using belongs), you might have to sort manualy via python builtin sorted (which can sort all iterables) W dniu niedziela, 9 września 2012 17:55:26 UTC+2 użytkownik Anthony napisał: > > Do you have to use .as_dict()? Instead, you

Re: [web2py] Relocated admin using router, problem with appadmin

2012-09-10 Thread Marek Mollin
W dniu poniedziałek, 10 września 2012 15:15:40 UTC+2 użytkownik Jonathan Lundell napisał: > > On 10 Sep 2012, at 2:17 AM, Marek Mollin > > wrote: > > Apparently, > I have to domains there is no way for me to access admin. > I get gateway timeouts. > > > I'l

Re: [web2py] Relocated admin using router, problem with appadmin

2012-09-11 Thread Marek Mollin
"We be rollin" ;] It works perfectly so far. Both admin and appadmin. Relocating admin doesnt work but its no big deal I guess. Thanks a million! W dniu wtorek, 11 września 2012 18:36:12 UTC+2 użytkownik Jonathan Lundell napisał: > > On 10 Sep 2012, at 9:02 AM, Marek Mollin >

Re: [web2py] Relocated admin using router, problem with appadmin

2012-09-11 Thread Marek Mollin
It fires up default app. W dniu wtorek, 11 września 2012 21:15:50 UTC+2 użytkownik Jonathan Lundell napisał: > > On 11 Sep 2012, at 12:04 PM, Marek Mollin > > wrote: > > "We be rollin" ;] > It works perfectly so far. Both admin and appadmin. > Relocating admin

Re: [web2py] Relocated admin using router, problem with appadmin

2012-09-11 Thread Marek Mollin
2012 21:27:15 UTC+2 użytkownik Marek Mollin napisał: > > It fires up default app. > > W dniu wtorek, 11 września 2012 21:15:50 UTC+2 użytkownik Jonathan Lundell > napisał: >> >> On 11 Sep 2012, at 12:04 PM, Marek Mollin wrote: >> >> "We be rollin

Re: [web2py] Relocated admin using router, problem with appadmin

2012-09-11 Thread Marek Mollin
I will test and provide further tomorrow. Thanks for quality involment. W dniu wtorek, 11 września 2012 21:37:00 UTC+2 użytkownik Jonathan Lundell napisał: > > On 11 Sep 2012, at 12:32 PM, Marek Mollin > > wrote: > > Checked again with restarting entire server and it seems f

[web2py] Multiple login pages - weird behaviour

2012-07-06 Thread Marek Mollin
I ran into very odd behaviour on web2py side. Say I have an application and want my login in several places (templates are different so I cannot just do some creative routing). Structure for logins goes like that. /appname/order/signin /appname/signin/index /appname/place/signin I setup my defau

[web2py] Re: Multiple login pages - weird behaviour

2012-07-06 Thread Marek Mollin
I understand it should work, but have hardtime debugging it. Just need ideas where to look for this wierd redirection. W dniu piątek, 6 lipca 2012 12:51:05 UTC+2 użytkownik Marek Mollin napisał: > > I ran into very odd behaviour on web2py side. > Say I have an application and want my

[web2py] Re: Multiple login pages - weird behaviour

2012-07-06 Thread Marek Mollin
ntroller = 'order') > > > > > Regards, > Marin > > Dana petak, 6. srpnja 2012. 12:51:05 UTC+2, korisnik Marek Mollin napisao > je: >> >> I ran into very odd behaviour on web2py side. >> Say I have an application and want my login in several place

[web2py] Re: How do you organize your applications to be unit-tested?

2012-10-04 Thread Marek Mollin
I only use doc-string testing. For everything I do its snap and effective enough. Plus it can trigered from admin. Though it is not recomnded way of unittesting - it has its problems, bloats the code base, does not provide clean seperation between tests and actual app. W dniu środa, 3 paździer

[web2py] Returning just variables

2012-10-16 Thread Marek Mollin
Hello, I was wondering if web2py controllers could adapt returning just variables. Either as single variable or python implicit tuple. def index(): return images,stories They would implicitly be getting the same dict keys. But I often find it redundant to do it. I know that if I return a var

[web2py] Re: web2py.com is down

2012-01-22 Thread Marek Mollin
I second On 22 Sty, 21:34, steve van christie wrote: > same in here > > > > > > > > On Sun, Jan 22, 2012 at 3:23 PM, Bruno Rocha wrote: > > > On Sun, Jan 22, 2012 at 6:15 PM, Anthony wrote: > > >>http://www.downforeveryoneorjustme.com/web2py.com: > > >> It's not just you!http://web2py.comlooks

[web2py] Web2py + amfrpc3 + clean flash

2012-02-20 Thread Marek Mollin
Hey, I have a problem. I am trying to work with clean flash or as3 if you will. The issue I am bumping into is null asynctoken.result. ** AS3 code: import mx.rpc.remoting.RemoteObject; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; import mx.utils.RpcClassAliasInitializer; imp

[web2py] Re: Web2py + amfrpc3 + clean flash

2012-02-20 Thread Marek Mollin
Also does not work with: http://pastebin.com/Ghn2yNkV I hope anyone can help me... On 20 Lut, 23:01, Marek Mollin wrote: > Hey, > I have a problem. I am trying to work with clean flash or as3 if you > will. > The issue I am bumping into is null asynctoken.result. > > ** AS

[web2py] Re: Web2py + amfrpc3 + clean flash

2012-02-20 Thread Marek Mollin
Does anyone have any working example in plain Actionscript 3 ? As I try numerous attempts but cant get web2py to provide amf gateway. On 21 Lut, 00:23, Marek Mollin wrote: > Also does not work with:http://pastebin.com/Ghn2yNkV > > I hope anyone can help me... > > On 20 Lut, 23:0

[web2py] Ajax login

2011-09-28 Thread Marek Mollin
Hello, I am wondering how to properly do an ajax login. I will be doing the whole thing with jquery ajax. I use it for a lot of stuff, I hav ajax controller that handles getting data from models and returns jsons. It works just fine... Yet when it comes to login, the whole auth seems to me to be

[web2py] Re: Ajax login

2011-09-28 Thread Marek Mollin
Good man! Thank a lot, its also undocumented in the book ;] On Sep 28, 11:24 am, Bruno Rocha wrote: > I use auth.login_bare function. Just post user and password to it. It will > do the rest of the job. > > http://zerp.ly/rochacbruno > Em 28/09/2011 06:15, "Mar

[web2py] get rid of default function from URL

2011-09-30 Thread Marek Mollin
Hello, I am trying to explicitly define what type of URL I wish to see. Since there are default route mappings I cannot figure why it always bounds index as default function even if I URL(c='something', f='') or URL(c='something', f=None). As I understand second case for there is probably somethin

[web2py] Re: Why continue to use this obscure phrase 'enterprise'?

2011-05-10 Thread Marek Mollin
I apologise for lack of study. Any way I remembered it bugged me while ago... and I saw the on web2py homepage since I lately returned to using it... web2py - ninja programming went bananas! anyway its good this has changes since as said before in my world 'enterprise' = legacy M, On 10 Maj,

[web2py] Application design RDBMS vs GAE, future migrations

2011-05-16 Thread Marek Mollin
Hello, As I have been more and more interested in GAE from app design perspective. I lurked into the codebase for web2py's gae driver and it seems to be mapping all the native futures I would like to have ( 'out of the box without custom queries' ). However I am wondering about the general experie

[web2py] Re: Application design RDBMS vs GAE, future migrations

2011-05-17 Thread Marek Mollin
ex system and compromised (by > denormalising) my data,  I have invariably regretted it later.  I mean > here, more important corporate data rather than for example blogs and > promotional websites. > > On May 16, 11:55 am, Marek Mollin wrote: > > > > > > > > > Hell

[web2py] Field reference type and notnull parameter

2011-06-04 Thread Marek Mollin
Hello, I ran into small problem. When I define model: db.define_table('child', Field('parent', 'reference parent', notnull=False), ) The problem is that validation serves me an error eventhough no validators are attachted to parent and I explicitly provided notnull=False. It shouldnt check in

[web2py] Re: Field reference type and notnull parameter

2011-06-05 Thread Marek Mollin
I figured that I need two validators IS_NULL_OR(IS_IN_DB()) However I find it is a glitch, I will have a look in the source. I think if a field has notnull set to false it should accept null no matter what type it is... On 5 Cze, 00:53, Marek Mollin wrote: > Hello, > I ran into small p

[web2py] Re: Field reference type and notnull parameter

2011-06-05 Thread Marek Mollin
thanks, but I kinda answered myself. I mean it can be in database so is_not_in_db doesnt help at all... Its just -> it can be in database but it also can be null... On 5 Cze, 17:31, pbreit wrote: > Try something like this: > > db.person.name.requires = [IS_NOT_EMPTY >