[web2py] Re: framework benchmarks - web2py surprisingly slow?

2012-09-26 Thread Marin Pranjić
This benchmark is useless. Why don't we make a benchmark with more complex app? Marin --

Re: [web2py] varchar size in database

2012-09-25 Thread Marin Pranjić
Field(..., length=255, ...) Marin On Tue, Sep 25, 2012 at 1:28 PM, yashar yvas...@gmail.com wrote: my database is postgres and i'm using this: Field('name',required=IS_LENGTH(255)); but it creates a varchar(512) in database, , how could i fix it? -- --

[web2py] Re: framework benchmarks - web2py surprisingly slow?

2012-09-25 Thread Marin Pranjić
https://bitbucket.org/akorn/helloworld/src Dana utorak, 25. rujna 2012. 16:02:40 UTC+2, korisnik Massimo Di Pierro napisao je: I agree we should try reproduce those benchmarks becomes something is clearly very wrong. I cannot find the code used for those benchmarks, so I added a comment

Re: [web2py] Re: Using the template system to generate messages

2012-09-23 Thread Marin Pranjić
Your email should begin with html tag and end with /html. If you have anything before/after, it will not render. Marin On Sun, Sep 23, 2012 at 9:05 PM, Pystar aitoehi...@gmail.com wrote: Using this method, the mail is sent successfully,but shows raw html code in the email client, i.e. its

[web2py] Re: short term roadmap

2012-09-15 Thread Marin Pranjić
with testing. Marin --

Re: [web2py] fake_migrate options works, but then problem when taken out

2012-09-13 Thread Marin Pranjić
Can you try Migrate = true Fake_migrate = true On Sep 13, 2012 6:37 PM, MichaelF mjfs...@gmail.com wrote: I have a field ('Is_home_team') that was defined as 'boolean', and I changed it to 'integer'. The migrate failed (I'm using MySQL). I then invoked the following on the table def that

Re: [web2py] fake_migrate options works, but then problem when taken out

2012-09-13 Thread Marin Pranjić
What about the case Is_home_team / is_home_team? On Sep 13, 2012 6:37 PM, MichaelF mjfs...@gmail.com wrote: I have a field ('Is_home_team') that was defined as 'boolean', and I changed it to 'integer'. The migrate failed (I'm using MySQL). I then invoked the following on the table def that

Re: [web2py] fake_migrate options works, but then problem when taken out

2012-09-13 Thread Marin Pranjić
. The 'migrate = true, fake_migrate = true' yields the same error. On Thursday, September 13, 2012 11:14:32 AM UTC-6, Marin Pranjić wrote: What about the case Is_home_team / is_home_team? On Sep 13, 2012 6:37 PM, MichaelF mjf...@gmail.com wrote: I have a field ('Is_home_team') that was defined

Re: [web2py] Somewhere between 1.97 and 2.0.8 I lost translations.

2012-09-12 Thread Marin Pranjić
Hi Jason, I just tried few things... It is working in nightly build but not in 2.0.8. Marin On Wed, Sep 12, 2012 at 7:54 AM, Jason Brower encomp...@gmail.com wrote: It seems that our production system stoped serving translated versions of our website. Even when our browsers

Re: [web2py] virtual fields book example

2012-09-12 Thread Marin Pranjić
Should be: Row.item.unit_price Row.item.quantity On Sep 12, 2012 6:21 PM, KMax mkostri...@gmail.com wrote: Hello, I was looking the book http://www.web2py.com/books/default/chapter/29/06 And intrested with: New style virtual fields (experimental) Create model.db with:

Re: [web2py] You don't have permission to access /admin/default/index on this server.

2012-09-10 Thread Marin Pranjić
You have to use *https://* Marin On Mon, Sep 10, 2012 at 11:17 AM, Vladimir wrote: Hello! I'd like to try web2py, but I can not open administrative pages. I'm getting this error: Forbidden You don't have permission to access /admin/default/index on this server

Re: [web2py] [ANN] Started development on web2admin

2012-09-10 Thread Marin Pranjić
Github is having some database problem right now. But thanks for sharing this - I will try it later. On Mon, Sep 10, 2012 at 3:49 PM, rif feric...@gmail.com wrote: I started the development of a new django-like admin interface. You can find it here: https://github.com/rif/web2admin It is

Re: [web2py] Re: DB Migration (sqlite-pgsql) Problems with 1.99.7 - 2.0.6 - 2.0.7 Versions

2012-09-10 Thread Marin Pranjić
Update: It started working as soon as I installed psycopg2. This is pg8000 issue. I am using psql 8.4.11 --

[web2py] Re: help test codemirrorw

2012-09-09 Thread Marin Pranjić
Is there anything that actually works on IE? codemirror works for me (ubuntu, Firefox15). But ace has nicer look. Dana nedjelja, 9. rujna 2012. 20:52:34 UTC+2, korisnik Massimo Di Pierro napisao je: If we move to codemirror (and we should) what do we get rid of (editarea, amy, ace)? We

Re: [web2py] web2py and Apache

2012-09-09 Thread Marin Pranjić
Try removing the backslashs On Sun, Sep 9, 2012 at 8:55 PM, Martin Weissenboeck mweis...@gmail.comwrote: Dear all, I have tried to use web2py together with Apache. The book says how to write the configuration file: VirtualHost *:80 ServerName web2py.example.com *WSGIDaemonProcess

Re: [web2py] web2py and Apache

2012-09-09 Thread Marin Pranjić
And put everything in one line. Or just make sure that there's nothing after backslash. On Sun, Sep 9, 2012 at 9:01 PM, Marin Pranjić marin.pran...@gmail.comwrote: Try removing the backslashs On Sun, Sep 9, 2012 at 8:55 PM, Martin Weissenboeck mweis...@gmail.comwrote: Dear all, I have

Re: [web2py] web2py and Apache

2012-09-09 Thread Marin Pranjić
/9/9 Marin Pranjić marin@gmail.com javascript: Try removing the backslashs On Sun, Sep 9, 2012 at 8:55 PM, Martin Weissenboeck mwei...@gmail.comjavascript: wrote: Dear all, I have tried to use web2py together with Apache. The book says how to write the configuration file

[web2py] Re: help test codemirrorw

2012-09-09 Thread Marin Pranjić
codemirror style. We can still work on it On Sunday, 9 September 2012 14:16:17 UTC-5, Massimo Di Pierro wrote: Which theme di you like better? http://codemirror.net/demo/theme.html On Sunday, 9 September 2012 14:00:01 UTC-5, Marin Pranjić wrote: Is there anything that actually works on IE

Re: [web2py] Re: Object Row. Error in 2.0.8 not in 2.0.0

2012-09-08 Thread Marin Pranjić
I don't understand (ckickin?) It should be optional and it shouldn't default to current behavior as it breaks old apps. On Sat, Sep 8, 2012 at 7:22 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: What do other people think? We can make the new behavior optional and only ckickin when

[web2py] What is the proper way to use external cron with web2py?

2012-09-07 Thread Marin Pranjić
I want to run a script once a day. I need to execute models. I tried with: 0 0 * * * python /path/to/web2py.py -S app -M -N -R applications/app/private /cron_test.py cron.txt 21 And this *works*. But I see web2py has some flags and I am not sure should I use them or not. Does it matter?

Re: [web2py] redirect with method POST

2012-09-07 Thread Marin Pranjić
You cannot send POST vars. You can send GET vars. You can store vars in session and then access them from another page (if they are in the same app). You can return a page with form and then submit that form with javascript (document.form.submit()) Marin On Fri, Sep 7, 2012 at 12:56 PM

Re: [web2py] Why would I use DIV classes/helpers, over an html template?

2012-09-06 Thread Marin Pranjić
You should use helpers (DIV others) inside controllers. In views, it's better to use raw html. Only exception is URL helper which should be always used. One advantage of using helpers in controllers is serverside DOM: http://web2py.com/books/default/chapter/29/05#Server-side-DOM-and-parsing On

Re: [web2py] Filtering on NULL values in DAL query

2012-09-05 Thread Marin Pranjić
it is db.table.field != None operator ~ is used for ORDER BY and it maps to DESC. On Wed, Sep 5, 2012 at 7:59 PM, Bruno Rocha rochacbr...@gmail.com wrote: db(~db.table.field == None).select() --

Re: [web2py] Re: Accessing id in SQLFORM.process()

2012-09-05 Thread Marin Pranjić
Should be accepted instead of validate: form = SQLFORM(...).process() if form.accepted: ... redirect(URL(..., args=form.vars.id)) On Wed, Sep 5, 2012 at 8:56 PM, Niphlod niph...@gmail.com wrote: in any case it should be at least form.vars.id. Don't know if it's available inside the process()

Re: [web2py] Filtering on NULL values in DAL query

2012-09-05 Thread Marin Pranjić
Thanks, good to know :) On Wed, Sep 5, 2012 at 8:37 PM, Bruno Rocha rochacbr...@gmail.com wrote: On Wed, Sep 5, 2012 at 3:12 PM, Marin Pranjić marin.pran...@gmail.comwrote: it is db.table.field != None operator ~ is used for ORDER BY and it maps to DESC. Yes, my bad, you are right

Re: [web2py] how to set js variable from session variable?

2012-09-05 Thread Marin Pranjić
jQuery.get('CALLBACK_URL', function(data){ alert(data); }); source: http://api.jquery.com/jQuery.get/ On Wed, Sep 5, 2012 at 8:15 AM, weheh richard_gor...@verizon.net wrote: I tried an ajax call to a controller callback, that in turn returns $('#myjsvar').val('%d'); % session.myvar, based

Re: [web2py] how to set js variable from session variable?

2012-09-05 Thread Marin Pranjić
On Wed, Sep 5, 2012 at 10:00 PM, Marin Pranjić marin.pran...@gmail.comwrote: jQuery.get('CALLBACK_URL', function(data){ alert(data); }); source: http://api.jquery.com/jQuery.get/ On Wed, Sep 5, 2012 at 8:15 AM, weheh richard_gor...@verizon.net wrote: I tried an ajax call

Re: [web2py] required option in Field

2012-09-05 Thread Marin Pranjić
This should work for other field types as you expect, but empty string is still valid string value. You can set: requires=IS_LENGTH(minsize=1) to disallow empty strings. On Tue, Sep 4, 2012 at 7:24 PM, Denis Rykov ryk...@gmail.com wrote: I use the following Field definition:

Re: [web2py] Filtering on NULL values in DAL query

2012-09-05 Thread Marin Pranjić
Db.table.field == None On Sep 5, 2012 6:42 PM, Yarin ykess...@gmail.com wrote: Is this documented anywhere? -- --

Re: [web2py] 2.0.6 bug? required=True not enforced

2012-09-05 Thread Marin Pranjić
I would expect that both constraints are accepted (empty string is not Null). Is the behavior different from older versions? On Wed, Sep 5, 2012 at 7:39 PM, mjm mjm...@webtothemax.com wrote: I have defined a simple table: db.define_table('hoortoestel', # algemeen Field('merk',

Re: [web2py] required option in Field

2012-09-05 Thread Marin Pranjić
I don't know why this happens - I always reply from email and it is always in the same thread. Sorry about that. Dana srijeda, 5. rujna 2012. 22:14:09 UTC+2, korisnik Niphlod napisao je: IS_NOT_EMPTY() is more remembereable . @Marin: when you reply from your mail client please strip the re

Re: [web2py] Can't Import library

2012-09-04 Thread Marin Pranjić
Do you use web2py source code or windows binary? On Tue, Sep 4, 2012 at 4:33 PM, BlueShadow kevin.bet...@gmail.com wrote: Hi, I like to import the PIL library in My web2py application. I did install it under my windows mashine. when I open the Python(idle) guy i can write import PIL withot

Re: [web2py] Re: available Databases and Tables empty in 2.0.6

2012-09-02 Thread Marin Pranjić
2.0.1 was never labeled as stable. So you were using trunk when you created an app? Can you try fake_migrate, maybe table definitions are somehow corrupt. Marin On Sun, Sep 2, 2012 at 7:04 PM, Annet anneve...@googlemail.com wrote: It does for me. Are you using an old app? An app created

Re: [web2py] Re: available Databases and Tables empty in 2.0.6

2012-09-02 Thread Marin Pranjić
More likely it is an appadmin issue. You should update appadmin.py and see if problem goes away On Sun, Sep 2, 2012 at 7:23 PM, Marin Pranjić marin.pran...@gmail.com wrote: 2.0.1 was never labeled as stable. So you were using trunk when you created an app? Can you try fake_migrate, maybe table

Re: [web2py] Re: Global formstyle configuration

2012-09-02 Thread Marin Pranjić
Current.response.formstyle maybe? Marin On Sep 2, 2012 9:11 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: That would affect all the apps at once. On Sunday, 2 September 2012 10:34:29 UTC-5, Anthony wrote: Are there other examples of potenti... --

Re: [web2py] help with apache

2012-09-01 Thread Marin Pranjić
Sure. First I need to find out what triggers it but that should be easy part. On Sat, Sep 1, 2012 at 2:13 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Can you try figur out which web2py change introduced the problem? On Saturday, 1 September 2012 00:12:57 UTC-5, Marin Pranjić

Re: [web2py] help with apache

2012-09-01 Thread Marin Pranjić
Maybe not so easy... I only got it twice and I have no idea what exactly did I do. This will take a while... It is hard to reproduce. On Sat, Sep 1, 2012 at 2:25 PM, Marin Pranjić marin.pran...@gmail.comwrote: Sure. First I need to find out what triggers it but that should be easy part

Re: [web2py] Is 2.0.2 or 2.0.3 really a stable version?

2012-08-31 Thread Marin Pranjić
to this release (in alphabetic order) Alan, Andrew, Anthony, Bruno, Christian, Dave, Dominic, Iceberg, Jonathan, Marc, Mariano, Marin, Martin, Mark, Michael, Michele, Niphlod, Patrick, Vladyslav, They spend many nights testing, coding, debugging at a very fast pace. Many

Re: [web2py] Is 2.0.2 or 2.0.3 really a stable version?

2012-08-31 Thread Marin Pranjić
Web2py has so much features and it is impossible to test everything. Sorry, but I cannot agree with this statement. Is it the official position? Of course not. These are my thoughts only. It is better when I don't talk much Marin --

Re: [web2py] help with apache

2012-08-31 Thread Marin Pranjić
I have the same problem, but starting web2py with WingIDE debugger (rocket). It happens on ubuntu but not on windows (I do not use windows much so maybe I didn't notice yet). I change ~5 ports in one day. And this wasn't happening before. On Sep 1, 2012 12:02 AM, Massimo Di Pierro

Re: [web2py] Re: web2py 2.02 ( stable) install right next to web2py 1.99.7 (stable) under home/www-data/ ....

2012-08-30 Thread Marin Pranjić
Admin app silently raises tickets in 1.99.7 On Aug 30, 2012 11:39 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Are you saying upgrade works now or does not work? If it does not work, what version are you upgrading from? and can you check form chrome console what error you get? On

Re: [web2py] post deleted

2012-08-29 Thread Marin Pranjić
I am receiving every post on email, and I didn't get yours. No one deleted it because I would still get it. So it wasn't even posted. Not sure why. It must be some error with google groups. It could happen... On Wed, Aug 29, 2012 at 1:20 PM, peter peterchutchin...@gmail.com wrote: I added a

[web2py] Login after password reset

2012-08-26 Thread Marin Pranjić
I would like to automatically login user after he submits the reset_password form. What is the best way to do it? I see that Auth.reset_password has onvalidation and onaccepts args that are not used for anything, so I'm out of (good) ideas. --

Re: [web2py] Re: Login after password reset

2012-08-26 Thread Marin Pranjić
:33 UTC-5, Marin Pranjić wrote: I would like to automatically... --

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

2012-08-25 Thread Marin Pranjić
You don't have to call .get() It will be called 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 rog...@gmail.com wrote: Still not working. When I add static I can do

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

2012-08-25 Thread Marin Pranjić
Ignore my comment... This is Field.Lazy not .Virtual. Sorry On Sat, Aug 25, 2012 at 6:29 PM, Marin Pranjić marin.pran...@gmail.comwrote: You don't have to call .get() It will be called internally with a row as an argument. And you should be using row.tablename.fieldname (instead just

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

2012-08-25 Thread Marin Pranjić
Found it... You should not use 'get' as a fieldname. if you change 'db.test.get' to 'db.test._get' or something else, it will work. or you can use: db.test[1]['get']() instead of db.test[1].get() Marin On Sat, Aug 25, 2012 at 6:35 PM, Marek Mollin rog...@gmail.com wrote: I missed

Re: [web2py] Re: Google group again

2012-08-24 Thread Marin Pranjić
I can see it too (web2py-users and web2py-developers). Marin On Fri, Aug 24, 2012 at 2:40 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Who are you? You can see things that only managers of the group should be able see. And Anthony is a member. On Thursday, 23 August 2012 23:09

Re: [web2py] Re: Major speed improvement need testers

2012-08-22 Thread Marin Pranjić
+1 for C implementation Year ago I tried compiling storage with cython and I was very surprised with the result but I do not remember the tests. On Aug 22, 2012 7:15 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Some more info the issue page claims this issue is fixed in pyhton

Re: [web2py] NameError one way. 404 NOT FOUND the other...

2012-08-18 Thread Marin Pranjić
You can run web2py in wingide if you set web2py.py as main debug file. On Aug 18, 2012 9:08 PM, thinkwell thinkwelldesi...@gmail.com wrote: Hello everyone, I'm working on emailing a message and I'm having some unexpected issues. Here is my code based on the web2py book: from gluon.tools import

Re: [web2py] NameError one way. 404 NOT FOUND the other...

2012-08-18 Thread Marin Pranjić
debugging, so after a time there's this proliferation of server windows. :-| I've just included the lines below in each file, which helps autocompletion. if 0: import db Any other WingIDE tips, let me know. On Saturday, August 18, 2012 3:32:49 PM UTC-4, Marin Pranjić wrote: You can run web2py

Re: [web2py] redirect results in invalid request.

2012-08-14 Thread Marin Pranjić
','router',request.args(0))) elif not session[request.args(0)].accountid==ADVANCEDACCOUNTID: redirect(URL('addressbook','router',request.args(0))) else: Try this instead: URL('adresbook', 'router', args=request.args(0) Marin --

Re: [web2py] redirect results in invalid request.

2012-08-14 Thread Marin Pranjić
edit: URL('addressbook', 'router', args=request.args(0)) On Tue, Aug 14, 2012 at 10:34 AM, Marin Pranjić marin.pran...@gmail.comwrote: On Tue, Aug 14, 2012 at 10:14 AM, Annet anneve...@googlemail.com wrote: In a controller I start the index function with the following code: if not len

Re: [web2py] web2py 2.0 almost done

2012-08-14 Thread Marin Pranjić
Patch is in attachment. Marin On Mon, Aug 13, 2012 at 4:52 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: ouch! sorry about that. On Monday, 13 August 2012 09:46:51 UTC-5, Marin Pranjić wrote: Sure. There is no upload logic for URLs. It was removed with this revision: http

Re: [web2py] web2py 2.0 almost done

2012-08-13 Thread Marin Pranjić
Installing new app in admin via URL is not working for me (trunk) On Tue, Aug 7, 2012 at 6:33 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Web2py 2.0 is almost done. Please try the nightly build. Let us know if it breaks anything. massimo -- --

Re: [web2py] web2py 2.0 almost done

2012-08-13 Thread Marin Pranjić
with urllib.urlopen but is not installed (if-elif-else logic is wrong). Marin On Mon, Aug 13, 2012 at 4:31 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Can you help looking into it? On Monday, 13 August 2012 05:32:20 UTC-5, Marin Pranjić wrote: Installing new app in admin via

Re: [web2py] 500 Error at http://www.web2py.org/

2012-08-12 Thread Marin Pranjić
You can use http://web2py.com/ Marin On Sun, Aug 12, 2012 at 1:50 PM, Terrence Brannon scheme...@gmail.comwrote: this needs to be fixed pronto. -- --

Re: [web2py] 500 Error at http://www.web2py.org/

2012-08-12 Thread Marin Pranjić
According to web.archive.org: http://web.archive.org/web/20100829120211/http://www.web2py.org/ It just redirects to web2py.com Marin On Sun, Aug 12, 2012 at 2:24 PM, Bruno Rocha rochacbr...@gmail.com wrote: I never knew about web2py.org (what is that? is it a web2py foundation web site?) -- --

Re: [web2py] web2py 2.0 almost done

2012-08-09 Thread Marin Pranjić
What about issues with rocket, is that fixed? (if I remember correctly it was about corruption of big-sized downloads) On Tue, Aug 7, 2012 at 6:33 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Web2py 2.0 is almost done. Please try the nightly build. Let us know if it breaks

[web2py] Re: issue with mysql (or pymysql only?)

2012-08-07 Thread Marin Pranjić
have 'Read Committed' by default. Not sure about sqlite but if it works then it works :) Marin Dana ponedjeljak, 6. kolovoza 2012. 22:08:37 UTC+2, korisnik Niphlod napisao je: I'm somewhat baffled by an issue that came up when testing the scheduler. BTW, I'm on Windows for this test

Re: [web2py] MySQL Error

2012-08-07 Thread Marin Pranjić
'Like' is an sql keyword. On Tue, Aug 7, 2012 at 1:13 PM, Hassan Alnatour halna...@gardeniatelco.comwrote: Dear ALL , I am trying to connect to mysql database and i keep getting this error : *class 'gluon.contrib.pymysql.err.ProgrammingError' (1064, uYou have an error in your SQL syntax;

Re: [web2py] MySQL Error

2012-08-07 Thread Marin Pranjić
Hi, order is sql keyword too. This might be helpful to you: http://web2py.com/books/default/chapter/29/6?search=check#Reserved-keywords Regards, Marin On Tue, Aug 7, 2012 at 3:05 PM, Hassan Alnatour halna...@gardeniatelco.comwrote: Dear Marin, I change Like To Likes but i still get errors

Re: [web2py] Re: Scheduler and trying to insert task with args

2012-07-27 Thread Marin Pranjić
Hi, shouldn't you remove the 'quotes'? Marin On Fri, Jul 27, 2012 at 2:54 PM, MJo mika.e.joukai...@gmail.com wrote: Oh I'm using trunk something like one week old to that matter. On Friday, July 27, 2012 3:52:03 PM UTC+3, MJo wrote: If I provide args like following: ... my_id

Re: [web2py] web2py windows build broken in nightly

2012-07-26 Thread Marin Pranjić
When did you download nightly build? Can you please try again, it was fixed 6 hours ago. Marin On Jul 26, 2012 7:14 PM, Nomad hilleratw...@gmail.com wrote: error on start up C:\web2py\web2pyweb2py.exe Traceback (most recent call last): File web2py.py, line 16, in module

[web2py] Re: Multiple login pages - weird behaviour

2012-07-06 Thread Marin Pranjić
Hello Marek, can you please try: auth.settings.controller = 'order' or: auth = Auth(..., controller = '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

Re: [web2py] select * from table_name where id IN (1,2,3,4,5,6) Using DAL ?

2012-07-04 Thread Marin Pranjić
You cannot join tables that are not in the same database. You can do: list_of_ids = db1(...).select(db1.tablename.id).as_list() db2(db2.tablename.id.belongs(list_of_ids)).select() Marin On Wed, Jul 4, 2012 at 12:28 PM, KMax mkostri...@gmail.com wrote: Hello, Is any way to query subj

Re: [web2py] select * from table_name where id IN (1,2,3,4,5,6) Using DAL ?

2012-07-04 Thread Marin Pranjić
I was wrong, here is working example: list_of_ids = [i.id for i in db1(db1.tablename.id0).select(db1.tablename.id )] rows = db2(db2.tablename.id.belongs(list_of_ids)).select() Is this what you want? Marin On Wed, Jul 4, 2012 at 1:25 PM, KMax mkostri...@gmail.com wrote: My goal to do select

Re: [web2py] How does keepvalues work?

2012-07-01 Thread Marin Pranjić
Form values are stored in session Marin On Sun, Jul 1, 2012 at 12:47 PM, Keith Edmunds k...@midnighthax.com wrote: What is the mechanism that 'keepvalues=True' uses? I have a form that uses keepvalues=True, and it includes combo box. Occasionally the values in the combo change

Re: [web2py] count current visitors

2012-06-19 Thread Marin Pranjić
you can search the group for more solutions, this is not the first time someone asked this question

Re: [web2py] Users Poll: To keep the button look for the welcome app's auth options, or not ?

2012-06-17 Thread Marin Pranjić
B1++ On Sun, Jun 17, 2012 at 5:30 AM, Andrew awillima...@gmail.com wrote: A week or two ago a change was made to the nav bar to give the auth buttons for Login, Register, etc a button look. This was part of the fix to the dropdown menus to get them to work with bootstrap. Another

Re: [web2py] publiching both apache and web2py sites

2012-06-16 Thread Marin Pranjić
You need two VirtualHost configs http://httpd.apache.org/docs/2.0/vhosts/examples.html You can find examples in web2py book: http://web2py.com/books/default/chapter/29/13 Marin On Sat, Jun 16, 2012 at 6:07 PM, Fernando J fernandojabon...@gmail.comwrote: Hello, I need some help: How

Re: [web2py] Fluxflex will be shut down and no longer available on June 30, 2012

2012-06-07 Thread Marin Pranjić
I was thinking about this. +1 On Thu, Jun 7, 2012 at 3:27 PM, Ismael Serratos ialejandr...@gmail.comwrote: Why don't we make our own web2py cloud environment? On Wed, Jun 6, 2012 at 4:34 PM, Bruno Rocha rochacbr...@gmail.com wrote: pythonanywhere has easy deployment for web2py

Re: [web2py] 75€ BOUNTY - Massively Complicated Query Required

2012-05-17 Thread Marin Pranjić
I am not sure if I understand your model. Can you explain tag_link ? Marin On Thu, May 17, 2012 at 6:28 PM, Jason Brower encomp...@gmail.com wrote: I have the event management tool I have been working on for 2 years now and I have made some changes to the code that require my most

Re: [web2py] 75€ BOUNTY - Massively Complicated Query Required

2012-05-17 Thread Marin Pranjić
. Aslo comes in handy in other ways too. Like if I want to create tag relations on other parts of my database. I could even create tag relations on tags or other tag relations. Very powerful. br, Jason On 05/17/2012 08:32 PM, Marin Pranjić wrote: I am not sure if I understand your model

Re: [web2py] Re: Two LEFT JOINs and left=

2012-05-16 Thread Marin Pranjić
Can you post entire query generated using _select method? On Wed, May 16, 2012 at 10:51 AM, Annet anneve...@googlemail.com wrote: I tried: row=db().select(db.Organization.name,db.Hub.name,\ left=[db.Node.on(db.Node.id==db.Organization.nodeID),db.Node.on(db.Node.id ==db.Hub.nodeID)]).first()

Re: [web2py] Re: Two LEFT JOINs and left=

2012-05-16 Thread Marin Pranjić
Also, can you try: row=db().select(db.Organization.name http://db.organization.name/, db.Hub.name http://db.hub.name/,\ left=[db.Organization.on(db.Node.id http://db.node.id/== db.Organization.nodeID),db.Hub.on(db.Node.id http://db.node.id/==db.Hub. nodeID)]).first() Marin On Wed, May 16, 2012

Re: [web2py] Login username fake ending character

2012-03-29 Thread Marin Pranjić
= request.post_vars.username[:-1] # remove last character .. return dict(form=auth()) Note you should do things before calling auth(). Marin On Thu, Mar 29, 2012 at 8:09 PM, Bruce Wade bruce.w...@gmail.com wrote: Hi, I need to be able to add a character to the end of a username that can be changed by us

Re: [web2py] Login username fake ending character

2012-03-29 Thread Marin Pranjić
Is check_username triggered before or after the database validation? I am not able to check it now. Marin On Thu, Mar 29, 2012 at 10:46 PM, Anthony abasta...@gmail.com wrote: Oops, right. In that case, I would reverse the if/else. On Thursday, March 29, 2012 4:11:13 PM UTC-4

Re: [web2py] Login username fake ending character

2012-03-29 Thread Marin Pranjić
if I am right but should be easy to check :) Marin On Thu, Mar 29, 2012 at 10:55 PM, Marin Pranjić marin.pran...@gmail.comwrote: Is check_username triggered before or after the database validation? I am not able to check it now. Marin On Thu, Mar 29, 2012 at 10:46 PM, Anthony abasta

Re: [web2py] 1.99.6 can't save, communications error

2012-03-04 Thread Marin Pranjić
Did you check permissions? On Sun, Mar 4, 2012 at 7:37 PM, Lewis lewis_le...@hotmail.com wrote: Anyone else? Tried 3 different browsers and two machines. Tried restarting apache and web2py. Still can't save. Not fatal, but it is nice to use the web editor for little changes. Thanks.

Re: [web2py] Re: 1.99.6 can't save, communications error

2012-03-04 Thread Marin Pranjić
running a copy and editing via web editor. Not sure what else can be wrong, every time i got communication error it was either problem with permissions or my admin session expired Marin On Sun, Mar 4, 2012 at 8:14 PM, Lewis lewis_le...@hotmail.com wrote: Well, that might have been the problem so I

[web2py] Erroneous code in gluon/*

2012-02-14 Thread Marin Pranjić
: undeclared name not builtin: extension (3 occurrences) 6. gluon/contrib/generics.py:20:22: undeclared name not builtin: HTTP Filename: gluon/contrib/memdb.py 1. gluon/contrib/memdb.py:772:22: undeclared name not builtin: sqlhtml There is more, I will continue later. Marin

Re: [web2py] Erroneous code in gluon/*

2012-02-14 Thread Marin Pranjić
are not really related to cython parser, this is web2py related. Mostly missing variable declarations and missing imports. Should be fixed. Marin On Tue, Feb 14, 2012 at 1:53 PM, Ricardo Pedroso rmdpedr...@gmail.comwrote: On Tue, Feb 14, 2012 at 12:48 PM, Ricardo Pedroso rmdpedr...@gmail.com wrote

[web2py] Re: Erroneous code in gluon/*

2012-02-14 Thread Marin Pranjić
a while. I am very happy to help, web2py is great tool. This is all for now, have a nice day Marin On Feb 14, 3:42 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: This is veyr useful feedback. I think I fixed them all in trunk. Please check and report more! On Feb 14, 3:33 am, Marin

[web2py] Re: Erroneous code in gluon/*

2012-02-14 Thread Marin Pranjić
Hi Ricardo, Sorry I did not see your post. :-) On Feb 14, 5:18 pm, Ricardo Pedroso rmdpedr...@gmail.com wrote: On Tue, Feb 14, 2012 at 2:42 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: This is veyr useful feedback. I think I fixed them all in trunk. Please check and report more!

Re: [web2py] New Plugin: plugin_markitup

2012-02-13 Thread Marin Pranjić
Thanks, i will test by the end of the week. I need this. Marin On Sun, Feb 12, 2012 at 10:07 PM, Ross Peoples ross.peop...@gmail.comwrote: I have created another plugin for the MarkItUp widget. I know that plugin_wiki has this currently, but I wanted a dedicated plugin

Re: [web2py] Dedicated IDE

2012-02-12 Thread Marin Pranjić
+1 for Wing, it is great On Sun, Feb 12, 2012 at 7:42 AM, Bruno Rocha rochacbr...@gmail.com wrote: I am working exclusively with web2py, over 2 years (8-24 hours a day *7) plus holydays. And I never used an IDE. I use Sublime-text-2 and VIM, I have Python code completion and I have set some

Re: [web2py] DAL: select column in (a,b)

2012-02-11 Thread Marin Pranjić
http://web2py.com/books/default/chapter/29/6#belongs Marin On Sat, Feb 11, 2012 at 12:34 PM, Ed Greenberg greenberg...@gmail.comwrote: I feel like I should know this. I've searched, but Google doesn't really allow for the word in as it's too short and common. I'd like to do select column

Re: [web2py] Nesting HTML tables

2012-01-29 Thread Marin Pranjić
Shouldn't second table go inside td ... /td if you want nested tables ? Shouldn't anything inside table be inside td ... /td ? I don't understand your wanted structure. It is not valid or am I missing something? Marin On Sun, Jan 29, 2012 at 10:10 PM, Tsvi Mostovicz ttm...@gmail.com wrote

Re: [web2py] Re: Problem with legacy tables

2012-01-25 Thread Marin Pranjić
What do you use for development? If you use an IDE with debugging step-by-step featues, you can find out where does id come from On Wed, Jan 25, 2012 at 3:35 PM, brushek brus...@gmail.com wrote: On 25 Sty, 15:17, Anthony abasta...@gmail.com wrote: I left the following comment with the

Re: [web2py] Re: Too many redirects when trying to use interactive demo

2012-01-18 Thread Marin Pranjić
firefox on ubuntu no problems On Wed, Jan 18, 2012 at 4:53 PM, Anthony abasta...@gmail.com wrote: I'm not experiencing any redirects (Windows IE and Chrome). Anthony On Wednesday, January 18, 2012 9:42:59 AM UTC-5, Massimo Di Pierro wrote: Thank you Michael, I will play some more with

Re: [web2py] TYMR - web2py social network - Invitations for this community

2012-01-18 Thread Marin Pranjić
I tried to create an event (just for testing) and got an error when tried to submit. Actually, I was redirected to http://tymr.com/event/draft/697 which is e404-not found Marin

Re: [web2py] Re: Set table name

2012-01-16 Thread Marin Pranjić
some module_function bacause it has to be executed for every request. Marin

Re: [web2py] Resources for setting up for development

2012-01-15 Thread Marin Pranjić
http://wingware.com/doc/howtos/web2py On Sun, Jan 15, 2012 at 12:39 PM, glimmung phil.kil...@gmail.com wrote: Hi All, I've been asked to give a short talk on web2py for a local Python user group. One thing that I am a little intimidated by is that some of these guys have been exposed to

Re: [web2py] Re: Set table name

2012-01-13 Thread Marin Pranjić
Try this, dog = 'dog12345' db.person[1][dog].select() On Fri, Jan 13, 2012 at 2:37 PM, Marcello Parra parro...@gmail.com wrote: Thanks Ross I tried this, but did not work: - db.person[1].dog.select() raises: KeyError: 'dog' but - db.person[1].dog12345.select() works fine

Re: [web2py] Re: why won't web2py create the databases

2012-01-12 Thread Marin Pranjić
will get error table does not exist. DAL thinks tables are already there, because you kept app/databases files. DAL is cool and easy, read the DAL section of the web2py.com/book :) Marin On Thu, Jan 12, 2012 at 6:03 AM, Likit lewis_le...@hotmail.com wrote: I mean, why won't web2py create the tables

Re: [web2py] Re: Happy new year

2012-01-01 Thread Marin Pranjić
+1 :-) 2012/1/1 Miroslav Gojic miroslavgo...@gmail.com Sretna Nova Godina! - - Miroslav Gojic - - 2012/1/1 Gerd gerd.niem...@gmail.com Ein gutes und glückliches neues Jahr Gerd

Re: [web2py] migrating to postgres error

2011-12-31 Thread Marin Pranjić
User is a reserved keyword in postgres, you need to rename field Marin On 31 Dec 2011 09:42, Plumo richar...@gmail.com wrote: I have an app working with sqlite. I tried changing to postgres and get this error: class 'psycopg2.ProgrammingError'(syntax error at or near user LINE 3: user INTEGER

Re: [web2py] Instant press 2.1.0 holiday edition (?)

2011-12-26 Thread Marin Pranjić
On Mon, Dec 26, 2011 at 3:21 PM, Martín Mulone mulone.mar...@gmail.comwrote: Instant press is not dead, I update it to vesion 2.1.0 holiday edition (?). *What's new?.* Hierarchy pages to menu, now working. Now layout is based in getskeleton. New design. New panel. Fix bugs. Added edit

Re: [web2py] Get the ID of a row in a virtual field?

2011-12-23 Thread Marin Pranjić
Instead of row.id, try: row.post.id :-) Marin On Fri, Dec 23, 2011 at 2:34 PM, Thomas Dall'Agnese thomas.dallagn...@gmail.com wrote: Hi, Is it possible to get the ID of a row in a virtual field? I tried the following piece of code to virtually get the number of comments of a given post

<    1   2   3   4   >