[web2py] appadmin - insert new auth_permission

2011-07-26 Thread Marin
in welcome app suggests defining tables at the end of file, so no custom tables are visible that way. Should this be treated as a bug? Regards, Marin

[web2py] Forcing table name in row object?

2011-08-08 Thread Marin
Hi, If query has table JOINs, fields are accessed with: row.tablename.fieldname. Without JOIN, it is row.fieldname. This is described here: http://web2py.com/book/default/chapter/06#Inner-Joins I need it join-independent. With or without join: row.tablename.fieldname (yes, even if SELECT has only

[web2py] auth.accessible_query(...)

2011-08-16 Thread Marin
Hi, there is a bug in documentation, http://web2py.com/book/default/chapter/08#Authorization rows = db(accessible_query('read', db.mytable, user_id))\ .select(db.mytable.ALL) should be: rows = db(auth.accessible_query('read', db.mytable, user_id))\ .select(db.mytable.ALL) Also, I noti

[web2py] Re: Cherokee server locking while upload

2011-03-26 Thread Marin
I hope this helps. http://groups.google.com/group/web2py/browse_thread/thread/62bece6a8c3b7524/e3289b402455758d On Mar 26, 7:52 pm, LightOfMooN wrote: > I have web2py + uWSGI + Cherokee > > When I upload file, server is locking for all users. > Does somebody khow how to fix it?

[web2py] crud - delete with update permissions?

2011-05-07 Thread Marin
Hi web2py, here's my controller: def index(): #create forms = [] ### forms = [crud.create(db.category)] #update parentId = request.vars.cat or "0" categories = db(db.category.parent_id == parentId).select() for cat in categories: forms.append(crud.update(db.cat

[web2py] SQLFORM update problem

2011-05-21 Thread Marin
Hi, I have an id field which is not named 'id'. Here's a part of definition: Category = db.define_table('category', Field('myid', 'id'), Field('id', 'integer'), Field('parent_id', 'integer') ... I want to make SQ

[web2py] Sharing sessions and authentication

2010-12-22 Thread Marin Pranjic
Hi there, I need to make few apps that will share sessions. For testing purposes, i have applications "shared", "app1" and "app2". In application "shared", i have: db = DAL('sqlite://storage.sqlite') session.connect(request, response, db = db) (...) in applications "app1" and "app2" i have:

Re: [web2py] Re: Sharing sessions and authentication

2010-12-22 Thread Marin Pranjic
ng in the sessions/ folder of the three apps. > > If you still have the problem I will try reproduce the problem and fix > it. > > Massimo > > On Dec 22, 5:40 pm, Marin Pranjic wrote: > > Hi there, > > I need to make few apps that will share sessions. > > For

Re: [web2py] Re: Sharing sessions and authentication

2010-12-22 Thread Marin Pranjic
No prob. I deleted all Recent history in browser, and tried again with the same result. Pretty sure it's not about cookies :) On Thu, Dec 23, 2010 at 1:20 AM, mdipierro wrote: > I cannot today but I will tomorrow. ;-) > > On Dec 22, 6:18 pm, Marin Pranjic wrote: > > Hi Ma

Re: [web2py] Re: Sharing sessions and authentication

2010-12-23 Thread Marin Pranjic
Key was the same in "app1", "app2" ,and "app3", but not in "shared" (don't know why). I've set the same key in all apps and it seems to be working now. Thanks! On Thu, Dec 23, 2010 at 7:57 AM, mdipierro wrote: > Yes if they are providing registration/login/change password. If only > one app pro

Re: [web2py] Re: question about ajax(...); return false;

2010-12-24 Thread Marin Pranjic
try this: function remove() { var a = document.getElementById('id'); var b = (a.parentNode).removeChild(a); } function add(x,y){ alert(x+y); return x+y; } text 2+3? now try removing "return false" after add function. the thing

Re: [web2py] Re: question about ajax(...); return false;

2010-12-24 Thread Marin Pranjic
t;#" and that will have the same effect as return false. but i prefer return false On Fri, Dec 24, 2010 at 10:26 PM, Marin Pranjic wrote: > try this: > > > >function remove() > { > var a = document.getElementById('id

Re: [web2py] How to change the layout?

2010-12-25 Thread Marin Pranjic
Download and install as a Plugin. On Sat, Dec 25, 2010 at 1:08 PM, Martin Weissenboeck wrote: > Hi, > > I have downloaded a new layout from web2py.com/layout and I want to active > it. > There should be a link, but I cannot find it. > > Any ideas? > Thx, Martin >

Re: [web2py] How to change the layout?

2010-12-25 Thread Marin Pranjic
t? > > > 2010/12/25 Marin Pranjic > > Download and install as a Plugin. >> >> >> On Sat, Dec 25, 2010 at 1:08 PM, Martin Weissenboeck >> wrote: >> >>> Hi, >>> >>> I have downloaded a new layout from web2py.com/layout and I wa

Re: [web2py] Renaming fields of auth tables

2010-12-29 Thread Marin Pranjic
Hi, you can use *label* like described here: http://www.mail-archive.com/web2py@googlegroups.com/msg28123.html but you can still reference it only by its name ['first_name', 'last_name']. On Wed, Dec 29, 2010 at 2:44 PM, Lisandro wrote: > Hi everyone. > I'm customizing my authentication and acce

[web2py] How to change form.vars before validation?

2010-12-29 Thread Marin Pranjic
Hi, I need to customize Auth: 1. use username instead of e-mail for login 2. remove first_name and last_name fields 3. make username case_insensitive I decided to use first_name field to store the "real" username, and username field to store lowercase username (for case-insensitive login). Used

Re: [web2py] Re: Renaming fields of auth tables

2010-12-29 Thread Marin Pranjic
default/chapter/08#Customizing-Auth hope this one helps Marin On Wed, Dec 29, 2010 at 9:02 PM, Lisandro wrote: > Thanks for the quickly answer. Though, I really need to rename the > field, this is for keep backward compatibility and standards with an > existing system. > > >

Re: [web2py] Re: Renaming fields of auth tables

2010-12-30 Thread Marin Pranjic
nually :P ). You can use: def sync_fields(form): form.vars['first_name'] = form.vars['my_custom_first_name'] form.vars['last_name'] = form.vars['my_custom_last_name'] auth.settings.register_onvalidation.append(sync_fields) auth.settings.profile_onvalidation

Re: [web2py] Re: Renaming fields of auth tables

2010-12-30 Thread Marin Pranjic
database level, so it > will work when I try to insert or update via web2py or via a desktop > application. > > I hope I be clear :P > > > On 30 dic, 16:46, Marin Pranjic wrote: > > It's all in the book :) > > Not sure what do you want to set by trigger. >

Re: [web2py] Problems with ssh tunnel to run cherokee-admin and configure web2py

2011-01-10 Thread Marin Pranjic
Slice is ok and your problem is not web2py related. Try restarting ssh demon (i googled, not sure if it'll work). On Mon, Jan 10, 2011 at 7:13 PM, Offray Vladimir Luna Cárdenas < off...@riseup.net> wrote: > Hi all, > > > I have being testing cherokee + uWSGI for serving web2py. Locally they > wor

[web2py] Re: good news...

2011-01-11 Thread Marin Pranjic
I think it's number of users in this group. On Jan 11, 9:15 pm, Anthony wrote: > Very cool. For some reason, the attached graph doesn't show up in the new > Google Groups interface for me -- had to go to the old version. > > Do you keep any stats on number of downloads or web2py.com visits or > a

Re: [web2py] [OT](urvey) web2py web browser

2011-01-13 Thread Marin Pranjic
No permission for graphic. On Thu, Jan 13, 2011 at 1:54 PM, Luis Díaz wrote: > Results for 13/01/2011 > > Chrome > 1648% Firefox > 1339%Explorer > 1 3%Safari > 13%Otros > 13%opera > 13%- > total 33100% > > > graphic: > > https://spreadsheets.google.com/g

[web2py] encoding problem

2011-01-26 Thread Marin Pranjic
It's not web2py related, but I hope someone can help me. I'm sending data via ajax, which is urlencoded JSON object (I used jquery-json). Then, I use json.loads(variable) to load the object. Everything works good for normal ASCII characters, but if I send non- ascii chars, i get the following: U

Re: [web2py] Re: encoding problem

2011-01-26 Thread Marin Pranjic
th unicode maybe it's jquery- > json and browser implementation that screws something up. > > On 26 Gen, 20:51, Marin Pranjic wrote: > > It's not web2py related, but I hope someone can help me. > > > > I'm sending data via ajax, which is urlencode

Re: [web2py] Re: encoding problem

2011-01-26 Thread Marin Pranjic
Problem solved! Browser issue. On Wed, Jan 26, 2011 at 10:26 PM, Marin Pranjic wrote: > I think urlencoding is the problem. > > If I run > http://example.com/cont/func?var=š<http://example.com/cont/func?var=%C5%A1> > > it encodes into > > http://example.com/con

Re: [web2py] Re: Is there an alternative to Django's Pinax in the world of Web2py? Options

2011-01-29 Thread Marin Pranjic
attachment On Sat, Jan 29, 2011 at 6:51 AM, Anthony wrote: > Where is it?

Re: [web2py] Re: migration from 1.88.2 to 1.91.6 problem

2011-02-01 Thread Marin Pranjic
### this happens because FROM has no knowledge of writable ### and thinks that a missing boolean field is a None if self.table[fieldname].type == 'boolean' and self.vars[fieldname]==None: del self.vars[fieldname] these are in red

Re: [web2py] web2py - Best Practice

2011-07-13 Thread Marin Pranjic
On Wed, Jul 13, 2011 at 7:45 AM, nic wrote: > > A Wiki / Blog / CMS / Forum > An Online Store > A Personal Accounting System > A Media Center > etc ... > This is great idea, I had it few months ago, but never wrote it here. Next week I'll start programming a Forum software (with web2py ofc). Mai

Re: [web2py] The web2py book is broken

2011-07-26 Thread Marin Pranjic
still not working 4me.

Re: [web2py] The web2py book is broken

2011-07-26 Thread Marin Pranjic
works now :D On Tue, Jul 26, 2011 at 9:22 PM, Marin Pranjic wrote: > still not working 4me. >

Re: [web2py] Re: web2py/python question

2011-07-29 Thread Marin Pranjic
is missing". If you want NULL values, you always have to explicitly ask for them. Since web2py DAL is translated into SQL, it's SQL semantics, not pythonic. Marin 2011/7/28 Kenneth Lundström : > Default value could be a good solution, but I don't understand how I have > never

Re: [web2py] search

2011-07-31 Thread Marin Pranjic
rows = db(db.blog.title.contains('search_entry').select() where 'search_entry' is string that you want to seach for. On Sat, Jul 30, 2011 at 7:14 PM, Web2Py Freak wrote: > hey guys , > > is there anyway to do a search  but other that the crud.search   or a > way to control the crud.search output

Re: [web2py] Re: Rocket support IPv6

2011-08-03 Thread Marin Pranjic
Congratulations Timothy!

Re: [web2py] email to all users of a group. Howto?

2011-08-04 Thread Marin Pranjic
On Thu, Aug 4, 2011 at 10:21 PM, Anthony wrote: > On Thursday, August 4, 2011 4:25:49 AM UTC-4, Ramos wrote: >> >> >> That is the way of an enterprise framework. > > > Note, web2py is no longer an "enterprise" framework > (http://www.web2py.com/).  ;-) > > Anthony > Source: web2py Enterprise Web

Re: [web2py] Re: New Plugin: plugin_ckeditor

2011-08-07 Thread Marin Pranjic
https://bitbucket.org/PhreeStyle/web2py_ckeditor 2011/8/7 António Ramos : > Where can i download this pluging from? > > It is not in the plugin area of web2py > Thank you > António > 2011/8/6 tomt >> >> Hi, >> >> I was having trouble editing existing data with web2py_ckeditor until >> I applied B

Re: [web2py] SELECT .... IN

2011-08-07 Thread Marin Pranjic
Hi, you can do: array = [1,3,6] db(db.tablename.fieldname.belongs(array)).select(db.tablename.ALL) On Sun, Aug 7, 2011 at 3:05 PM, guruyaya wrote: > Hi guys. > Is there a way to use a SELECT... IN... syntax in dal? Something like > "SELECT * FROM auth_user WHERE id IN (1,3,6) > If not, I'll expl

Re: [web2py] IMPORTANT on cron jobs, scheduled jobs and delayed jobs

2011-08-08 Thread Marin Pranjic
It looks good. How to add a task which will repeat infinite times? What are Start time and Stop time used for? Just to clarify... On Mon, Aug 8, 2011 at 4:28 PM, Massimo Di Pierro wrote: > > Please let me know what you think. > > Massimo

Re: [web2py] Re: Forcing table name in row object?

2011-08-09 Thread Marin Pranjic
No, but it would not help me. I want to implement "dynamic queries", actually support adding some WHERE and SELECT parts in query (extending original queries). And iteration through Rows object should work without knowing did query had JOINs or not. Problem is when original query does not have JOI

Re: [web2py] Re: Forcing table name in row object?

2011-08-09 Thread Marin Pranjic
Thanks Marin On 9 Aug 2011 20:18, "Massimo Di Pierro" wrote: Now I understand: rows = db(...).select(...) rows.compact = False and now you always have the rows[i].table.field syntax. no more rows[i].field shortcuts. Massimo On Aug 9, 1:06 pm, Marin Pranjic wrote: > No, but

Re: [web2py] what exactly does "request.args()" do?

2011-08-10 Thread Marin Pranjic
request.args() without arguments does nothing: TypeError: __call__() takes at least 2 arguments (1 given) Marin On Wed, Aug 10, 2011 at 9:51 AM, Jared Stunn wrote: > This is from the docs: > > "A list of the URL path components following the controller function > name; equivalent

Re: [web2py] Re: add simple field to registration

2011-08-11 Thread Marin Pranjic
They will not if you set writable = false. Marin On 11 Aug 2011 17:16, "vapirix" wrote: The only problem with that is that then the clients will be able to edit that in their profile. =D It's ok, I'll just roll my own registration page, it's not much work. On Aug 10

Re: [web2py] Re: add simple field to registration

2011-08-11 Thread Marin Pranjic
On Aug 11, 10:41 am, Marin Pranjic wrote: > They will not if you set writ... > On 11 Aug 2011 17:16, "vapirix" wrote: > > The only problem with that is that ...

Re: [web2py] weird errors about not finding classes / objects when multiple simultaneous requests from different browsers/sessions.

2011-08-15 Thread Marin Pranjic
It should not be an issue with mixing environments. Can you provide more information? Marin On Mon, Aug 15, 2011 at 6:27 PM, Carlos wrote: > Hi, > > I'm having some weird errors about web2py/python not finding classes / > objects in my models when multiple simultaneous r

[web2py] memcache increment - bugfix

2011-08-17 Thread Marin Pranjić
self.set(newKey, value, time_expire) +Client.set(self, newKey, value, time_expire) return value def set(self, key, value, time_expire=300): Marin

Re: [web2py] memcache increment - bugfix

2011-08-17 Thread Marin Pranjic
On Wed, Aug 17, 2011 at 11:54 AM, Marin Pranjić wrote: > I tried to create an issue on code.google.com/p/web2py but it crashed > and are currently not working. I'm not sure if issue is created or > not. > > Here is c/p: > > > What steps will reproduce the problem

[web2py] Bug (in gluon.contrib.populate) TRUNK

2011-08-17 Thread Marin Pranjić
reply when I reproduce on minimalist test app. Marin

Re: [web2py] Re: Bug (in gluon.contrib.populate) TRUNK

2011-08-17 Thread Marin Pranjic
Hi Massimo, It works now :-) Regards, Marin On Wed, Aug 17, 2011 at 8:50 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > The reason for the change was to avoid records populated with the zero > option (''). > I think I fixed the problem, please check i

Re: [web2py] auth.accessible_query(...)

2011-08-17 Thread Marin Pranjic
Repeating the question :) On Tue, Aug 16, 2011 at 10:21 AM, Marin wrote: > Also, I noticed that accessible_query raises an exception if user is > not logged in. > It's because of a line 2805 (trunk) in gluon/tools.py: > user_id = self.user.id > > What is expected behavio

Re: [web2py] Re: auth.accessible_query(...)

2011-08-18 Thread Marin Pranjic
both solutions. Marin On Wed, Aug 17, 2011 at 11:25 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > It is not intentional and I think I have a workaround in trunk (please > check it). yet it makes no sense to get an accessible_query if user is > not logged it. It wo

[web2py] error in trunk

2011-09-12 Thread Marin Pranjić
Traceback (most recent call last): File "web2py.py", line 16, in import gluon.widget File "/srv/test/web2py/gluon/__init__.py", line 15, in from globals import current ImportError: No module named globals run with python web2py.py, current trunk

Re: [web2py] error in trunk

2011-09-12 Thread Marin Pranjic
few more errors: ImportError: cannot import name redirect ImportError: No module named validators This is weird. Is it just me? On Mon, Sep 12, 2011 at 1:15 PM, Marin Pranjić wrote: > Traceback (most recent call last): > File "web2py.py", line 16, in >import gluon.w

Re: [web2py] Re: error in trunk

2011-09-12 Thread Marin Pranjic
Hi Massimo, you can ignore this. I unintentionally ran python3 instead python2. My mistake, sorry about that. Marin On Mon, Sep 12, 2011 at 2:28 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > can you try again please? What os? > > On Sep 12, 6:15 am, Marin

Re: [web2py] Re: Are there any Lotus Notes developers using web2py?

2011-09-21 Thread Marin Pranjić
I would take this approach: http://www.sqlteam.com/article/more-trees-hierarchies-in-sql On Wed, Sep 21, 2011 at 7:23 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > I see the need for this. I need to think bout how to do it in a > backward compatible way and in a way that works on

Re: [web2py] help needed for a query for one to many relation

2011-09-30 Thread Marin Pranjić
b.account.nb == 2110) & ((db.account.id == db.statement.debit) | (db.account.id == db.statement.credit)) ).select(db.account.ALL, db.statement.ALL) Regards, Marin

Re: Re : Re: [web2py] Re: fluxflex

2011-10-07 Thread Marin Pranjić
https://groups.google.com/forum/#!msg/web2py/26g9XA_0ZXE/4yiIHs5FivkJ http://groups.google.com/group/web2py/browse_thread/thread/485ee82885963d21?hl=en I guess it is related to security issue described above. Regards, Marin 2011/10/7 kralin > I've been testing the web2py-for-

Re: Re : Re: [web2py] Re: fluxflex

2011-10-07 Thread Marin Pranjić
https://groups.google.com/forum/#!msg/web2py/26g9XA_0ZXE/4yiIHs5FivkJ http://groups.google.com/group/web2py/browse_thread/thread/485ee82885... It is related to security issue described above. Regards, Marin On Oct 7, 11:26 am, kralin wrote: > I've been testing the  web2py-for-

Re: [web2py] Re: order by surname, name

2011-02-03 Thread Marin Pranjic
+ you can use ~ to reverse order. http://web2py.com/book/default/chapter/06#orderby,-groupby,-limitby,-distinct On Thu, Feb 3, 2011 at 2:21 PM, dederocks wrote: > Hi Johann, > > Just use "|": > orderby=db.table.name|db.table.surname > > On 3 fév, 13:56, Johann Spies wrote: > > According to the

Re: [web2py] username or email

2011-02-03 Thread Marin Pranjic
not sure if something like that is implemented, but here's what you can do: before validating form: 1. check if email is given in post vars (instead of username) 2. if it is, make select query to db to find out username related to given email 3. change variable (if email is given in username field

Re: [web2py] drop support for python 2.4?

2011-02-05 Thread Marin Pranjic
+1 for dropping support If shared hosting providers want web2py users, they will enable python >=2.5. There are many cheap VPS hosting services with root access. There is also web2pyslices.com with some easy setup scripts. If dropping support leads to code improvement and faster/easier developme

Re: [web2py] Howto populate table with data

2011-02-10 Thread Marin Pranjic
Add this after define_table for t in TAGS: ... db.tag.insert(name = t) run once and then comment / delete the lines. On Thu, Feb 10, 2011 at 10:57 PM, Sascha Peilicke wrote: > Hi guys, > > I'd like to know how to best populate a table with a given set of default > values. I could add them man

Re: [web2py] New web2py logo? [just for fun]

2011-02-11 Thread Marin Pranjic
sweet :) On Fri, Feb 11, 2011 at 6:36 PM, Anthony wrote: > My 4-year-old daughter has been practicing her writing recently. Yesterday, > she handed this to me (she must have found the book on my desk and copied > the title). Apparently web2py makes her think of hearts and flowers, as it > does f

Re: [web2py] Re: new support platform for web2py - make money

2011-02-11 Thread Marin Pranjic
Cannot. Still in beta. On 11 Feb 2011 21:53, "pbreit" wrote: Where can qa-stack be downloaded?

Re: [web2py] Re: New web2py logo? [just for fun]

2011-02-12 Thread Marin Pranjic
I set it as a wallpaper on my mobile, hope your daughter won't mind :) On Sat, Feb 12, 2011 at 8:51 AM, Changju wrote: > > How sweet:) > On 2월12일, 오전2시36분, Anthony wrote: > > My 4-year-old daughter has been practicing her writing recently. > Yesterday, > > she handed this to me (she must have f

Re: [web2py] include files

2011-02-13 Thread Marin Pranjic
MAYBE this? {{include 'includes/header.html'}} On Sun, Feb 13, 2011 at 9:25 PM, stargate wrote: > I am trying to include the following file but it gives me a error > > {{include 'includes/header.html'}} > > The file and folder exist but it doesn't work what I am doing wrong. > >

Re: [web2py] Re: include files

2011-02-13 Thread Marin Pranjic
good :) if you put slash at the beginning of the path, it is evaluated as apsolute path (from root folder) without slash or with "./" (dot slash) it is relative path, and that's what you need. On Sun, Feb 13, 2011 at 9:45 PM, stargate wrote: > That worked > > On Feb 13

Re: [web2py] web2py 1.92.1 is OUT

2011-02-16 Thread Marin Pranjic
I wanted to update from admin app but it gives me neverending "Checking for upgrades..." Not sure what is the problem, so better to report it :) Using 1.91.6 source code on windows, python2.7.1 I tried restarting web2py and update in 2 browsers but no success. On Wed, Feb 16, 2011 at 3:52 PM, M

web2py@googlegroups.com

2011-02-17 Thread Marin Pranjic
It's because of pythons limitations in overloading operators. You can change behavior of &, |, ~ in python, but cannot change and, or, not. On Thu, Feb 17, 2011 at 7:00 PM, Paul Gerrard wrote: > On more than one occasion, I've been caught out by a slip in my select > statements. If you use 'and'

Re: [web2py] Unable to restart Web2py on Mac

2011-02-17 Thread Marin Pranjic
Restarting web server does not restart web2py, i think. Not sure if it should restart it or not, but... same here On Thu, Feb 17, 2011 at 11:30 PM, Jonathan Lundell wrote: > On Feb 17, 2011, at 2:21 PM, pbreit wrote: > > The "stop server" and "start server" buttons on the Tcl console app. > > FWI

Re: [web2py] Re: Controller Within a Controller

2011-02-18 Thread Marin Pranjic
I use this for helper functions. On Fri, Feb 18, 2011 at 11:03 PM, VP wrote: > This is an interesting idea. I am wondering if by doing this, we > can: > > + treat controllers as regular Python functions, which have > parameters. > + implement some type of automatic type checking on request.arg

Re: [web2py] Re: can't create new app

2011-02-20 Thread Marin Pranjic
If you used script to install, then your web2py folder is /var/web2py and user is www-data run this as root: chown -R www-data:www-data /var/web2py then permissions will be set On Sun, Feb 20, 2011 at 9:45 AM, LightOfMooN wrote: > I increased memory to 512mb from 256, so now I have about 80mb m

Re: [web2py] Re: can't create new app

2011-02-20 Thread Marin Pranjic
p.s. i have the same problem, permissions are set, apps cannot be created im using latest stable version On Sun, Feb 20, 2011 at 12:22 PM, Marin Pranjic wrote: > If you used script to install, then your web2py folder is /var/web2py and > user is www-data > run this as root: >

Re: [web2py] Choosing your view

2011-02-24 Thread Marin Pranjic
You can change value of response.view http://web2py.com/book/default/chapter/04?search=response.view On Thu, Feb 24, 2011 at 2:49 PM, Ed Greenberg wrote: > Can one have more than one view share a controller? > > In cases where more than one operation shares a common amount of HTML, > this would

Re: [web2py] Re: Creating an app with an already existing database

2011-02-25 Thread Marin Pranjic
I guess the post he quoted? On Fri, Feb 25, 2011 at 1:25 AM, mart wrote: > what solved the matter ? > > On Feb 24, 6:52 pm, Eduardo wrote: > > Thank you all. That solves the matter. > > > > Eduardo > > > > On Feb 24, 8:31 pm, Vasile Ermicioi wrote: > > > > > > Please note I would like to use s

Re: [web2py] New Web2Py Webhoster

2011-02-26 Thread Marin Pranjic
This is great. Very affordable.500Mb is enough for most of users. Added into bookmarks :) On Sat, Feb 26, 2011 at 1:17 PM, Budgetbytes wrote: > Budgetbytes Hosting Solutions now offers Web2Py support. The website > is still in Dutch, but will be released in english around march. > > For only € 1

Re: [web2py] Extending registration page?

2011-03-01 Thread Marin Pranjic
http://web2py.com/book/default/chapter/08#Customizing-Auth On Tue, Mar 1, 2011 at 10:16 AM, Werner Gillmer wrote: > Hi > > Very new to web2py, how would I go about extending the registration > page? I want to capture phone numbers etc. during registration as > well. > > > Thanks

Re: [web2py] Re: How to accept credit card payments (video)

2011-03-06 Thread Marin Pranjic
+1 :D On Sun, Mar 6, 2011 at 11:48 PM, villas wrote: > > speaks better than me. > > LOL, no way -- we missed the accent! :)

Re: [web2py] web2py.com is down right now

2011-03-18 Thread Marin Pranjic
works for me :) On Sat, Mar 19, 2011 at 5:07 AM, Anthony wrote: >

Re: [web2py] Re: Backup/Restore problem with web2py, postgres

2011-03-20 Thread Marin Pranjic
It will create *.table files in your apps /database/ folder, but will not try to create those tables in database. In other words, it will "fake" creation of tables in db. I think :) Someone should confirm On Sun, Mar 20, 2011 at 3:40 PM, VP wrote: > What does this do exactly? > > Can you explain

Re: [web2py] strange lost password behavior

2011-03-21 Thread Marin Pranjic
Which version of web2py are you using? On Mon, Mar 21, 2011 at 3:56 PM, rif wrote: > Hi guys, > > Is the default lost password working for you? > > In my deploy I always get an Invalid email validation warning. >

Re: [web2py] Re: reddit again

2011-03-22 Thread Marin Pranjic
On Tue, Mar 22, 2011 at 2:09 PM, villas wrote: > > You are really saying that is provocative?! Please explain and suggest > a less provocative title. Perhaps something like 'Programming video - > please don't get upset or anything' might be better. > LOL

Re: [web2py] Re: to the artists among us

2011-03-25 Thread Marin Pranjic
On Fri, Mar 25, 2011 at 10:09 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Ideally this color scheme > > http://127.0.0.1:8000/examples/static/img/logo_db.png > > this: http://web2py.com/examples/static/img/logo_db.png :)

Re: [web2py] Re: Congratulations to this mailing list

2011-04-04 Thread Marin Pranjic
I can join if you need idlers :P On Mon, Apr 4, 2011 at 12:46 PM, Mengu wrote: > also people are not couraged to join the irc room. that's one of the > reasons. > > On Apr 4, 12:26 pm, selecta wrote: > > ah i was just about to complain that the main page still links to a > > strange irc channel

Re: [web2py] shortcut for table_is empty?

2011-04-12 Thread Marin Pranjic
Something like db(db.tablename.id>0).count() ? On Tue, Apr 12, 2011 at 5:22 PM, mart wrote: > Hi, > > is there a shortcut to check if a table is empty? (not look to see > what the content is, just if it has any at all) > > Thanks, > Mart :)

Re: [web2py] Language selection

2011-05-10 Thread Marin Pranjic
You can use T.force('en') T.force('it') T.force('es') based on request.vars or arguments ex: http://myapp/?lang?es T.force(request.vars.lang) not sure how to do it with routes On Sun, May 8, 2011 at 11:47 PM, Miguel Morillo Iruela < asellus2...@gmail.com> wrote: > Hello, > > I wonder if it i

Re: [web2py] form in loop view

2011-05-22 Thread Marin Pranjic
Not sure if i understood, but if you have multiple forms, you can use SQLFORM with form.accepts(formname = 'form_'+str(i), ...) each form has it's own formname, so form.accepts will know which one is submitted. Is that your problem? On Sun, May 22, 2011 at 10:02 AM, 黄祥 wrote: > hi, > > is it pos

Re: [web2py] Re: What if Massimo got hit by a Bus?

2011-05-26 Thread Marin Pranjic
We will be angry at bus driver :) On Thu, May 26, 2011 at 4:48 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > LOL... > > What if the CEO of a company gets hit by a bus? They get another CEO! > > I can assure there are many web2py experts on this list > http://web2py.com/examples/def

Re: [web2py] SQL help

2011-06-06 Thread Marin Pranjic
Yes, it is. It should be something like db(db.shirts.color.belongs(['red', 'white', 'blue']).select() On Tue, Jun 7, 2011 at 2:18 AM, DJ wrote: > Is this query possible in web2py? > > SELECT * FROM `shirts` WHERE `color` IN ('red','white','blue') > > -Sebastian >

Re: [web2py] ORing between validators

2011-06-12 Thread Marin Pranjic
You can leave it empty and use onvalidation function: http://web2py.com/book/default/chapter/07#onvalidation On Sun, Jun 12, 2011 at 9:54 AM, Neveen Adel wrote: > Hello, > > I have a field in database that can accepts float numbers or time. > > so i need to have OR-ing between the following ex

Re: [web2py] Re: Discussion: Thoughts about including jQuery UI in core web2py?

2011-06-13 Thread Marin Pranjic
I think that template app should be minimal. On Mon, Jun 13, 2011 at 2:33 PM, Martín Mulone wrote: > I prefer the way to select the application you want to install, only > welcome in main web2py and the others over a repository. > > New: You want to install? > >- welcome (default) >- welc

Re: [web2py] SQLFORM layout - very frustrating

2011-06-15 Thread Marin Pranjic
you can customize select / option tags layout with CSS On Wed, Jun 15, 2011 at 5:16 PM, wdtatenh wrote: > I could really use an answer to this question. > > Using SQLFORM is there a simple notation to set the width of a > with IS_IN_SET defined in the model. > > Inserting {{=custom.form.widget.

Re: [web2py] Cheaper hosting...

2011-10-30 Thread Marin Pranjić
If you need very cheap hosting, you can look here: http://www.lowendbox.com/ However, price does matter :) Uptime, customer support... These providers are good for testing, backup, or small unimportant sites. It's risky but if you pay monthly, not a big loss if something goes bad. If you need soli

Re: [web2py] Left Outer Join Confusion

2011-10-31 Thread Marin Pranjić
As described here: http://web2py.com/book/default/chapter/06#Left-Outer-Join db(inner_joins).select(select_fields, left = db.tablename.on(...)) note that "left" can be a list of joins if you need >1 left join in query. left = [db.table1.on(...), db.table2.on(...), ...] On Mon, Oct 31, 2011 at 5

[web2py] best way to contact a programmer

2011-11-12 Thread Marin Dodoub
my budget is limited. What's the average price of your last contracts ? Also I don't know if we can make money out of my idea, but I could also give a share in my website... Thanks in advance, Marin

[web2py] Re: best way to contact a programmer

2011-11-19 Thread Marin Dodoub
Thanks for all your answers. I have been quite busy these days, so I only answer now. Marin On 18 nov, 17:10, Constantine Vasil wrote: > +dlypka > * > * > I am developing web services for already 7 years (SOAP, REST, XML, etc.) > using .NET. At this time back in the beginning

[web2py] trunk error

2011-11-30 Thread Marin Pranjić
=["Microsoft Internet Explorer", 'Firefox'], dist=['WindowsMobile'], flavor=None) Marin

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

Re: [web2py] Re: Janrain auth not working

2011-12-23 Thread Marin Pranjić
Do you have parameters_81.py file in web2py folder? On Sat, Dec 24, 2011 at 5:01 AM, Chux wrote: > This seems even more significant than I realized .. > > It seems after getting in by manually editing the URL, after janrain auth, > I am unable to use the admin application .. it now claims, admin

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 wrote: > 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 link to page, and a

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" wrote: I have an app working with sqlite. I tried changing to postgres and get this error: (syntax error at or near "user" LINE 3: user INTEGER REFERENCES auth_user(i

Re: [web2py] Re: Happy new year

2012-01-01 Thread Marin Pranjić
+1 :-) 2012/1/1 Miroslav Gojic > Sretna Nova Godina! > > - - Miroslav Gojic - - > > > > 2012/1/1 Gerd > >> Ein gutes und glückliches neues Jahr >> >> Gerd >> > >

  1   2   >