[web2py] Re: extra text in forms

2011-04-11 Thread niknok
This is how I use it right now.. Looking for a way to change 'instruction' field. form=SQLFORM.factory( Field('instruction','text', writable=False, default='Extra text to display'), Field('f1', 'string')) On Apr 12, 10:00 am, DenesL wrote: > Can you provide an example of what you want?.

[web2py] Re: registering visitors vs users - looking for suggestions

2011-04-11 Thread niknok
Here are some of the ideas I'm playing around with: Option 1: automagically create an email address I've been reading on Login Methods from the book. I wonder if there's an easy way to create a third-party email address (gmail for example) for those users who have none? If a user say they don't h

[web2py] Re: Creating a many-to-many form with arbitrary number of fields

2011-04-11 Thread pbreit
I'd suggest something like this: === db.py === db.define_table('dish', Field('name')) db.define_table('ingredient', Field('name')) db.define_table('recipe', Field('dish', db.dish), Field('ingredient', db.ingredient), Field('quantity')) ingredients_in_dish = db((db.dish.i

[web2py] bulk insert form

2011-04-11 Thread 黄祥
hi, is it possible to insert several data simultanously (bulk insert) in web2py using crud or sqlform? i mean, like select several image file and then upload it, or maybe using jquery add or remove form field any suggestion or reference for doing that? thank you so much

[web2py] Web2Py and IntelliJ Idea

2011-04-11 Thread luckysmack
Im wondering if anyone is using IntelliJ's Idea editor for their web2py projects. I used it for php before coming here and is hands down my favorite IDE. It works well will intellij but for some reason I feel like I should have some better integration. I know it doesnt officially support it, but im

[web2py] shameless advertisement - web2py course

2011-04-11 Thread Massimo Di Pierro
Hello everybody, tomorrow is the first day of my online class on web development with python using web2py: http://www.cdm.depaul.edu/ipd/Programs/Pages/WebDevelopmentwithPython.aspx If you are interested, you may still be able to sign up. I cover some of the stuff you know and some un-publishe

[web2py] Re: Creating a many-to-many form with arbitrary number of fields

2011-04-11 Thread JorgeRpo
what is ingredient_num for?

[web2py] Re: subdomain auth

2011-04-11 Thread LightOfMooN
Yes, you are right! I still work with only response.cookies[response.session_id_name]['domain'] = ".domain.ru" On 12 апр, 00:22, Anthony wrote: > On Monday, April 11, 2011 2:05:34 PM UTC-4, LightOfMooN wrote: > > > No, it just a single application > > > I just add to my db.py: > > response.cookie

[web2py] Re: routes_out protocol

2011-04-11 Thread LightOfMooN
The problem is because urls is relative, not absolute. My problem is: If I have https and I'm in sub1.domain.ru, I can't make url https://sub2.domain.ru, because I can't catch protocol in routes_out, like ('$protocol*://domain\.ru:.* /myapp/company/index/$sub', '$protocol*://$sub.domain.ru'), On

[web2py] Re: extra text in forms

2011-04-11 Thread DenesL
Can you provide an example of what you want?. On Apr 11, 8:57 pm, niknok wrote: > Yes, I know it can be done in Views. What I was wondering about is how > to do so from the controller. > > On Apr 11, 10:07 pm, Johann Spies wrote: > > > > > > > > > On 10 April 2011 23:42, niknok wrote: > > > >

[web2py] Bookings Manager

2011-04-11 Thread Ialejandro
Hi everybody!! Again with my booking example, but now I'm really stucked. I have this model: *** if auth.is_logged_in(): me = auth.user.id else: me = None db.define_table('room' Field('name','st

[web2py] Re: registering visitors vs users - looking for suggestions

2011-04-11 Thread pbreit
So how do you want to identify users? Maybe auth_user.username would work?

[web2py] Re: extra text in forms

2011-04-11 Thread niknok
Yes, I know it can be done in Views. What I was wondering about is how to do so from the controller. On Apr 11, 10:07 pm, Johann Spies wrote: > On 10 April 2011 23:42, niknok wrote: > > >  This might sound too basic, but I couldn't find out how to display extra > > text in across the width of th

[web2py] Re: Use bpython with web2py

2011-04-11 Thread niknok
Nice! Now, how do I apply the patch? On Apr 12, 4:14 am, "Arun K.Rajeevan" wrote: > Hi All, > > BPythonhttp://bpython-interpreter.org/, is a lightweight  python console > with auto completion etc., > It's a wrapper around standard python console. > for debian based systems do, > > $> sudo apt-get

[web2py] Re: registering visitors vs users - looking for suggestions

2011-04-11 Thread niknok
I'm sorry if I wasn't clear. My problem is that some of the public users may not have email addresses (That's a reality in many developing countries.) but I still need to try to minimize duplicate registration (i.e. same name, gender, dob, etc. cannot register again so i need to authenticate again

[web2py] Re: Multi-Tenant Web2py

2011-04-11 Thread Jay
SAP the world's biggest ERP program uses the option #3 above. They can host many companies in one system (a system has only one database). Each company has a client number (3 digits). The login screen has four fields. 1. userid, 2. password 3. client# and 4. Language. In the data dictionary - that

[web2py] Re: Interactive Fiction App

2011-04-11 Thread Anthony
Note, web2py includes a Comet module that uses WebSockets and the Tornado web server. The file is /gluon/contrib/comet_messaging.py ( http://code.google.com/p/web2py/source/browse/gluon/contrib/comet_messaging.py), and instructions are in the file. Here's a demo site that uses it: http://web2py

[web2py] Re: Interactive Fiction App

2011-04-11 Thread Jonathan Dobson
I think perhaps I have found something: Threaded Python Websocket Server and Javascript Client

[web2py] Re: LAMP like frameworks are dying. Time for the javascript age

2011-04-11 Thread cjrh
On Apr 9, 10:35 am, Luther Goh Lu Feng wrote: > I hope to learn from everyone's opinion on this. It is pretty clear that the future belongs to javascript, as long as that is the language that all browsers support. Expect javascript JITs to improve. Expect the growth of more full-blown desktop-l

[web2py] extract get_records from build_set in IS_IN_DB

2011-04-11 Thread Carlos
Hi Massimo, I need some special cases for IS_IN_DB where I directly provide the records/rows, instead of selecting them via dbset. For this reason I was wondering if it's possible that you extract the records building part from build_set method in IS_IN_DB class into the following new get_reco

[web2py] Re: Asking advice for a special architecture

2011-04-11 Thread Christopher Steel
We have an app for that. (Sorry could not resist...) here: http://www.web2py.com/appliances/default/show/18 It is getting pretty old but should outline the basics using xmlrpc Cheers, Chris On Apr 11, 8:44 am, José Luis Redrejo wrote: > Hi, > I've volunteered to develop an application a NGO

[web2py] Creating a many-to-many form with arbitrary number of fields

2011-04-11 Thread spiffytech
I'm creating a tool to manage recipes and I'm stuck creating the recipe entry form. Each recipe has a many-to-many database relation with ingredients. The user needs to be able to enter an arbitrary number of ingredients for each recipe. Each ingredient used in a recipe must include the quantity an

[web2py] Re: Use bpython with web2py

2011-04-11 Thread Massimo Di Pierro
Fantastic. I will try this asap. Meanwhile if other people try it please let me know. Once tested, I have no objection to include it. Massimo On Apr 11, 2011, at 3:14 PM, Arun K.Rajeevan wrote: > Hi All, > > BPython http://bpython-interpreter.org/ , is a lightweight python console > with aut

[web2py] Re: Use bpython with web2py

2011-04-11 Thread Arun K.Rajeevan
In case someone can't see attachment, here's the content of attachment - # HG changeset patch # User Arun K Ra

[web2py] Use bpython with web2py

2011-04-11 Thread Arun K.Rajeevan
Hi All, BPython http://bpython-interpreter.org/ , is a lightweight python console with auto completion etc., It's a wrapper around standard python console. for debian based systems do, $> sudo apt-get install bpython to install bpython, if not already have. So as a response to the following th

[web2py] Re: Interactive Fiction App

2011-04-11 Thread Jonathan Dobson
Thanks for the link. The examples I've seen using XMLHttpRequest() all return static data from some file. I notice in the case of the web console (the one via the link) that the request is going to a php file, where a dynamic response is returned based on the request. (When I try to open th

[web2py] Re: Check if a user has already rated

2011-04-11 Thread Drise
I will try that. On Apr 11, 11:59 am, pbreit wrote: > Either way. But I think the point is to just use a db().select() operation > to determine if the users hasrated.

[web2py] Re: Cascading Drop Down Lists slice not working with Postgres as backend

2011-04-11 Thread pbreit
I don't see sequence_name in the slice or in Web2py Book so that certainly could be the problem.

[web2py] Wizard comments/suggestions

2011-04-11 Thread Keith Pettit
First of all, I love it. This gives me a huge start on creating an application. It may not be perfect but it gives a great start. I had some comments/questions about some of the different parts of the wizard that I put below. *Step 1: Setting Parameters* Plugins: Where does it get it's plugi

[web2py] Re: registering visitors vs users - looking for suggestions

2011-04-11 Thread pbreit
I do something which I think is similar. I offer my users the ability to add a product to a watch list. I do not require that they create an account to do so but I do need their email address to send them an email about the product. I store the email address and product_id in a "watchlist" table

[web2py] Re: IS_IMAGE vs IS_UPLOAD_FILENAME

2011-04-11 Thread andrej burja
nice.

[web2py] Re: Interactive Fiction App

2011-04-11 Thread pbreit
Depending on how crucial it is for login to take place in your console, I would suggest using Web2py's built-in login functionality (at least in the beginning) and then once users are logged in, show them your app. My guess is that the login part is not integral to your app so it might make sens

[web2py] Re: Change IPython to BPython in shell mode

2011-04-11 Thread Arun K.Rajeevan
I think he is talking about http://bpython-interpreter.org/ Which is a lightweight python console with auto completion and etc., To support this, add an option in gluon/widget.py for additional command line switch And then in gluon/shell.py (around line no: 204 add option for bPython) import bpyt

[web2py] Re: IS_IMAGE vs IS_UPLOAD_FILENAME

2011-04-11 Thread Arun K.Rajeevan
also see this thread https://groups.google.com/d/msg/web2py/lvsxEIy9Ryg/FnEhcB01ff8J

[web2py] Re: subdomain auth

2011-04-11 Thread Anthony
On Monday, April 11, 2011 2:05:34 PM UTC-4, LightOfMooN wrote: > > No, it just a single application > > I just add to my db.py: > response.cookies[response.session_id_name]['domain'] = ".domain.ru" > session.connect(request,response,masterapp='myapp') If it's just one application, I'm thinki

[web2py] Interactive Fiction App

2011-04-11 Thread Jonathan Dobson
Hello, web2py-users: I've been working on an Interactive Fiction framework in Python. I want to hook it up to the web, and I'm running all over the Net poking different things. One of the things I've been poking is web2py. While I'm fairly competent with Python, I'm wallowing in noobery when

[web2py] Re: IS_IMAGE vs IS_UPLOAD_FILENAME

2011-04-11 Thread Arun K.Rajeevan
can't you just do that with IS_IMAGE you can also use both validators at the same-time too. I'm not an regex expert but something like this "\.(svg|svgz|)$" will work with IS_UPLOAD_FILENAME, (pass for extension param)

[web2py] Re: subdomain auth

2011-04-11 Thread LightOfMooN
No, it just a single application I just add to my db.py: response.cookies[response.session_id_name]['domain'] = ".domain.ru" session.connect(request,response,masterapp='myapp') On 11 апр, 23:39, Anthony wrote: > Cool. What exactly did you do? Is it just a single application, or did you > have to

[web2py] Re: registering visitors vs users - looking for suggestions

2011-04-11 Thread Arun K.Rajeevan
Sorry to say I don't understand the scenario, Out of curiosity why you need public users to be registered, if they are happened to be some random visitor. Let everyone access the contents limited set of resources and allow only registered users(*core*) to access the system fully; it's as simple

Re: [web2py] routes_out protocol

2011-04-11 Thread Jonathan Lundell
On Apr 11, 2011, at 10:13 AM, LightOfMooN wrote: > > Hello > I have some records in my routes.py > > in routes_in: >(r'.*://$sub\.domain\.ru:.* /?', r'/myapp/company/index/$sub'), > > in routes_out: >('/myapp/company/index/$sub', 'http://$sub.domain.ru'), > > So, routes_in workds fine,

Re: [web2py] Re: mod_wsgi and import error under apache

2011-04-11 Thread Arun K.Rajeevan
>File"/usr/lib/pymodules/python2.6/mercurial/ui.py",line232,inwrite > sys.stdout.write(str(a)) > IOError:sys.stdout access restricted by mod_wsgi Seems your second problem is a circular import problem in matplotlib here is a reference https://groups.google.com/forum/#!topic/modwsgi/97bnQ

[web2py] Re: subdomain auth

2011-04-11 Thread Anthony
Cool. What exactly did you do? Is it just a single application, or did you have to use the multi-application method Massimo suggested? On Monday, April 11, 2011 12:42:50 PM UTC-4, LightOfMooN wrote: > Oh, Anthony, Massimo > It works! > Thanks you a lot! > > On 11 апр, 22:29, Massimo Di Pierro

Re: [web2py] Re: Bug in SQLFORM.accepts with onvalidate?

2011-04-11 Thread Jens Örtenholm
Are we talking about different approaches here? I am now certain I did something wrong the first time around. I made a simple test as follows: In db.py: db.define_table('people', Field('name', 'string')) In people.py (controller): def func(form): session.flash = T('Onvalidatio

Re: [web2py] extra text in forms

2011-04-11 Thread Arun K.Rajeevan
I almost always extract form elements in view(custom.widgets) for extra styling and flexibility that it provides. In that way, you can set your forms to display anyway you like. Add field-sets, legends, headings, Para., what ever way you like.. For ref see the link from above post.

[web2py] routes_out protocol

2011-04-11 Thread LightOfMooN
Hello I have some records in my routes.py in routes_in: (r'.*://$sub\.domain\.ru:.* /?', r'/myapp/company/index/$sub'), in routes_out: ('/myapp/company/index/$sub', 'http://$sub.domain.ru'), So, routes_in workds fine, but routes_out works only by http. Is there a way to get protocol in r

[web2py] Re: Check if a user has already rated

2011-04-11 Thread Arun K.Rajeevan
Have you tried http://www.web2pyslices.com/main/slices/take_slice/112 I remember it did check for already done rating and doesn't allow rate twice by the same user on same object. May be you can just use it or look at the code and adapt it to your application. That's really not that big, only a

[web2py] Re: Check if a user has already rated

2011-04-11 Thread Arun K.Rajeevan
Have you tried http://www.web2pyslices.com/main/slices/take_slice/112 I remember it did check for already done rating and doesn't allow rate twice by the same user on same object. May be you can just use it or look at the code and adapt it to your application. That's really not that big, only a

[web2py] Re: Help rate this logo I designed.

2011-04-11 Thread b00m_chef
My off-topic comment was in relation to field of expertise, not a comment on your profile. I just feel the opinion of people in this group would not be as helpful as that from people at the links I provided...I wasn't trying to brush you off...simply trying to help in the way I can (I don't want to

[web2py] Re: Problem with JQuery Function

2011-04-11 Thread pbreit
If you are seeing errors in your flash messages, calendars, tool-tips, etc, that sounds like it could be a syntax error in your JavaScript. Is your site publicly available so we can have a look?

[web2py] Re: Check if a user has already rated

2011-04-11 Thread pbreit
Either way. But I think the point is to just use a db().select() operation to determine if the users hasrated.

[web2py] Re: Multi-Tenant Web2py

2011-04-11 Thread pbreit
I'm not sure there are (m)any silver bullets. The three basic approaches are 1) separate DBs, 2) separate tables and 3) shared db/tables: http://msdn.microsoft.com/en-us/library/aa479086.aspx I don't know if there are an "silver bullets" for this so you might just have to brute-force code it. I

Re: [web2py] Asking advice for a special architecture

2011-04-11 Thread pbreit
Could you set something up with a service like DropBox?

[web2py] Re: Check if a user has already rated

2011-04-11 Thread Drise
Hm.. so you are saying that I should store the "has rated" with the user, and not the comment? On Apr 11, 11:08 am, Kenneth Lundström wrote: > On 11.4.2011 18:59, Drise wrote:> How would I go by doing that? > > > On Apr 11, 10:42 am, pbreit  wrote: > >> I wasn't aware that validators could be use

[web2py] Re: Wizard bug when creating a table auth_group

2011-04-11 Thread Massimo Di Pierro
Yes this is a bug. The problem is that all the auth_* table are always there if define auth_user. So by listing it, you get a duplicate and that creates problems. On Apr 11, 10:56 am, Keith Pettit wrote: > I wanted to try the Wizard out.  Very kick ass by the way.  But I found a > bug. > > I want

[web2py] Re: subdomain auth

2011-04-11 Thread LightOfMooN
Oh, Anthony, Massimo It works! Thanks you a lot! On 11 апр, 22:29, Massimo Di Pierro wrote: > True. So perhaps this should do it: > > response.cookies[response.session_id_name]['domain'] = > ".habrahabr.ru" > session.connect(request,response,masterapp='') > > where masterapp is the name of th

[web2py] Re: Wizard bug when creating a table auth_group

2011-04-11 Thread Keith Pettit
Ah, got it. Thanks for the help. I didn't know auth_user created those tables along with it. In case anybody is wondering it looks like it creates the following tables: auth_event auth_group auth_membership auth_permission auth_user Thanks again, -Keith

[web2py] Re: subdomain auth

2011-04-11 Thread Massimo Di Pierro
True. So perhaps this should do it: response.cookies[response.session_id_name]['domain'] = ".habrahabr.ru" session.connect(request,response,masterapp='') where masterapp is the name of the one of the two apps that will be in charge of authentication. On Apr 11, 11:25 am, Anthony wrote: > Ac

[web2py] Re: subdomain auth

2011-04-11 Thread Anthony
According to the book, here's how web2py sets the session cookie: response.cookies[response.session_id_name] = response.session_id response.cookies[response.session_id_name]['path'] = "/" Perhaps it would work with subdomains if you added (maybe in a model file): response.cookies[response.s

[web2py] Re: subdomain auth

2011-04-11 Thread LightOfMooN
We just use web2py auth in our site, and not manual manage cookies. On 11 апр, 21:56, Mengu wrote: > are you saving the cookies in cities.ru domain but not per subdomain? > > On Apr 11, 6:40 pm, LightOfMooN wrote: > > > > > > > > > But that is in all browsers (we try IE, FF, Chrome, Safari). > >

Re: [web2py] Re: Check if a user has already rated

2011-04-11 Thread Kenneth Lundström
On 11.4.2011 18:59, Drise wrote: How would I go by doing that? On Apr 11, 10:42 am, pbreit wrote: I wasn't aware that validators could be used like that. Perhaps just query the db? Hello, as pbreit commented validators can´t be used like that. They are used when you are using forms, to val

[web2py] Re: Check if a user has already rated

2011-04-11 Thread Drise
How would I go by doing that? On Apr 11, 10:42 am, pbreit wrote: > I wasn't aware that validators could be used like that. Perhaps just query > the db?

[web2py] Re: subdomain auth

2011-04-11 Thread Mengu
are you saving the cookies in cities.ru domain but not per subdomain? On Apr 11, 6:40 pm, LightOfMooN wrote: > But that is in all browsers (we try IE, FF, Chrome, Safari). > I have seen many sites with subdomain structure, where there are one > login for all site structure. > For example, habraha

[web2py] Wizard bug when creating a table auth_group

2011-04-11 Thread Keith Pettit
I wanted to try the Wizard out. Very kick ass by the way. But I found a bug. I wanted a group table so I specified a "auth_group" table. I added group onto auth_user as well. That caused it so I got all sorts of errors in the created app. Any page I would go to I would see " KeyError: 't_

[web2py] Check if a user has already rated

2011-04-11 Thread pbreit
I wasn't aware that validators could be used like that. Perhaps just query the db?

[web2py] Re: subdomain auth

2011-04-11 Thread LightOfMooN
But that is in all browsers (we try IE, FF, Chrome, Safari). I have seen many sites with subdomain structure, where there are one login for all site structure. For example, habrahabr.ru, where subdomain is username. http://alexkucherov.habrahabr.ru/ http://lugansk.habrahabr.ru/ http://devart.habrah

Re: [web2py] Asking advice for a special architecture

2011-04-11 Thread José Luis Redrejo Rodríguez
2011/4/11 Jonathan Lundell : > On Apr 11, 2011, at 6:05 AM, Vasile Ermicioi wrote: >> I would recommend to use google gears for offline work, >> then to send all collected data to the server when you are online, >> > > Wikipedia: > >> In late November 2009, numerous online news sources reported tha

[web2py] Re: Bug in SQLFORM.accepts with onvalidate?

2011-04-11 Thread VP
I have checked again and inserted an undeclared function call into the custom validator and figured out that it is not called at all. Something is wrong. On Apr 8, 9:52 am, Massimo Di Pierro wrote: > This may be a bug. Will look into it... > > On Apr 8, 2:31 am, Jens Örtenholm wrote: > > > > >

[web2py] Re: extending web2py's generic.rss view

2011-04-11 Thread johntynan
No errors. The feed displays, but the enclosure and the comments tags to do not appear. If I call the function without the .rss at the end here is what I get: http://pastie.textmate.org/1782979 Note that the enclosure and discussions fields are present. If I call the same function using the .r

[web2py] include svg files in view

2011-04-11 Thread andrej burja
hi how can i include a svg (or maby even svgz) file in view? can i do something similar as with image i tried this but it doesn't work andrej

[web2py] Re: Problem with tables of n:m relationsships

2011-04-11 Thread Anthony
On Monday, April 11, 2011 8:45:38 AM UTC-4, Steffen Rhinow wrote: > > Hi > have a problem with n:m relationships > My problem is that I can not add items to a table, which contains 2 > primary keys (foreign keys) > Imagine I have two tables like > > db.define_table('language', > Field('n

[web2py] Re: Import HTML file

2011-04-11 Thread Anthony
Note, web2py can be used to parse HTML into web2py HTML helpers via TAG(), and then the tags can be removed via the flatten() method -- see http://web2py.com/book/default/chapter/05#Parsing and http://web2py.com/book/default/chapter/05#flatten. On Monday, April 11, 2011 2:38:22 AM UTC-4, Kennet

[web2py] Multi-Tenant Web2py

2011-04-11 Thread Will Stevens
Has anyone successfully implemented a multi-tentant application in web2py? If so, can you give me any pointers? I have considered using the GAE namespace stuff to add multi-tentant functionality, but I do not like that I am then making GAE a requirement for my application. I would prefer to add

Re: [web2py] extra text in forms

2011-04-11 Thread Johann Spies
On 10 April 2011 23:42, niknok wrote: > This might sound too basic, but I couldn't find out how to display extra > text in across the width of the whole form table. > > Right now, I do it this way (which only displays in the input column) but I > wonder what's the web2py way? > > form=SQLFORM.fa

[web2py] Re: Problem with JQuery Function

2011-04-11 Thread Anthony
Crud forms can be manipulated server side like any other HTML helper, as explained at http://web2py.com/book/default/chapter/05#Server-side-DOM-and-Parsing and http://www.web2pyslices.com/main/slices/take_slice/43. There may be an easier way, but one way to add an id to a crud form would be:

Re: [web2py] Re: mod_wsgi and import error under apache

2011-04-11 Thread Manuele Pesenti
Il 11/04/2011 15:41, Massimo Di Pierro ha scritto: Somewhere there is a print statement. print statements break mod_wsgi. not in the app I'm trying to commit 'cause it's a new one! Manuele

Re: [web2py] Asking advice for a special architecture

2011-04-11 Thread Jonathan Lundell
On Apr 11, 2011, at 6:05 AM, Vasile Ermicioi wrote: > I would recommend to use google gears for offline work, > then to send all collected data to the server when you are online, > Wikipedia: > In late November 2009, numerous online news sources reported that Google is > going to migrate to us

[web2py] Re: LOAD/web2py component improved web2py_trap_form

2011-04-11 Thread Massimo Di Pierro
No objection in principle but need to check implementation. Can you please open an issue on google code and upload your propose patch. Thanks. Massimo On Apr 7, 4:46 am, selecta wrote: > itsnt it annoying that when you have forms with multiple submit > buttons in a web2py component the button th

[web2py] Re: mod_wsgi and import error under apache

2011-04-11 Thread Massimo Di Pierro
Somewhere there is a print statement. print statements break mod_wsgi. On Apr 11, 6:18 am, Manuele Pesenti wrote: > Hi *, > following the instructions in the manual > athttp://web2py.com/book/default/chapter/11I've installed web2py under > apache using the script setup-web2py-ubuntu.sh and I got

[web2py] 502 Bad Gateway in web2py

2011-04-11 Thread contatogilson...@gmail.com
Hello guys, I hosted a system webfaction.com and its plan has 80MB of memory. But the strange thing is that only has two people accessing the system and the usage time gives thefollowing error: 502 Bad Gateway What do I resolve this problem? Has anyone experienced this? _

[web2py] Re: subdomain auth

2011-04-11 Thread Massimo Di Pierro
The problem I can thnk of is that browser perceives them as different domains and does not share cookies required for session info. On Apr 11, 12:35 am, LightOfMooN wrote: > No solutions for that? > > On 10 апр, 23:18, LightOfMooN wrote: > > > > > > > > > Hello. > > I have site based on subdomai

[web2py] Problem with tables of n:m relationsships

2011-04-11 Thread Steffen Rhinow
Hi have a problem with n:m relationships My problem is that I can not add items to a table, which contains 2 primary keys (foreign keys) Imagine I have two tables like db.define_table('language', Field('name','string(50)', notnull=False, default=None), Field('rfc_code','string(10)', notnul

[web2py] Strange select behavior

2011-04-11 Thread Christian Degenkolb
hi newsgroup I stumbled upon a strange select behavior. maybe somebody here can help me. I have the following select statement programms = db( (db.TBLsoftware.id==db.TBLsoftware_to_programms.TBLsoftware) & (db.TBLprogramms.id==db.TBLsoftware_to_programms.TBLprogramms) & (db.TBLsoftware.

[web2py] SQLFORM, extra element, errors bug

2011-04-11 Thread Yurii Zolot'ko
Hi, While adding custom input element to SQLFORM as described at http://web2py.com/book/default/chapter/07#Adding-extra-form-elements-to-SQLFORM I've found a following problem: unless there are no validator set for custom field everything works fine. However if there's validator, for example: for

[web2py] Check if a user has already rated

2011-04-11 Thread Drise
Hello. I'm trying to get a view to check if a user has already rated something (ie, is in the hasrated database). I have this code {{if ratings.username.IS_NOT_IN_DB(auth.user):}} But when the database is empty I get a Nonetype error. Then, when I manually add myself to the database, I get ('str'

Re: [web2py] Asking advice for a special architecture

2011-04-11 Thread Vasile Ermicioi
I would recommend to use google gears for offline work, then to send all collected data to the server when you are online,

[web2py] Asking advice for a special architecture

2011-04-11 Thread José Luis Redrejo
Hi, I've volunteered to develop an application a NGO needs. This organization has volunteers that will go to different places that have a workstation or laptop without Internet connection. There, they will fill some forms using the application. When a laptop is available they'll return home with th

[web2py] Re: Problem with JQuery Function

2011-04-11 Thread luifran
I want it to affect all the forms, I use crud forms, how I can put a id for the crud forms? On 11 abr, 00:38, pbreit wrote: > Possibly because you are binding to 'form'. You might want to make the bind > more specific like this: > > > > > >

Re: [web2py] Re: Fwd: web2py_1.92.1-1_i386.changes ACCEPTED into unstable

2011-04-11 Thread danto
w00t!! :D 2011/4/11 selecta > +1 yeay > > On Apr 10, 11:30 pm, Massimo Di Pierro > wrote: > > +1 > > > > On Apr 10, 9:35 am, José Luis Redrejo Rodríguez > > wrote: > > > > > > > > > It's just been accepted into Debian. I'll upload latest stable version > > > available (1.94.6) inwww.web2py.com

[web2py] Re: web-based shell - not working. no ouput displayed.

2011-04-11 Thread niknok
Yes, I've read that. In fact, that is what I use. What I was asking was was how to use another shell (pycrust, in this case) to load w2p models and controllers. Also, how do I refresh the controller/models loaded after I made changes? Right now, using Ipython, I have to log out and then log back i

[web2py] registering visitors vs users - looking for suggestions

2011-04-11 Thread niknok
The application I'm trying to develop targets two kinds of users. The *real* user of the system uses the full core functions of the application, while another set of targeted users has limited access to certain functions of the system. Issues: the public user may, or may not have an email address.

[web2py] mod_wsgi and import error under apache

2011-04-11 Thread Manuele Pesenti
Hi *, following the instructions in the manual at http://web2py.com/book/default/chapter/11 I've installed web2py under apache using the script setup-web2py-ubuntu.sh and I got 2 problem: 1) tryibg to use the subversioning tool commiting an app I obtain: Traceback(most recent call last):

[web2py] Re: Strange SSL upload issue

2011-04-11 Thread sherdim
Hello! I have the same pain as described! Some file uploads end with : Traceback (most recent call last): File "D:\a\w2p\gluon\main.py", line 410, in wsgibase parse_get_post_vars(request, environ) File "D:\a\w2p\gluon\main.py", line 266, in parse_get_post_vars request.body = copystre

[web2py] IS_IMAGE vs IS_UPLOAD_FILENAME

2011-04-11 Thread andrej burja
in IS_IMAGE i can use extensions: iterable containing allowed image file extensions in lowercase in IS_UPLOAD_FILENAMe i can use extension: extension (after dot) regex is there a special reason why there is not an option to use iterable in IS_UPLOAD_FILENAME i want to chek if the file is svg or

[web2py] Re: LOAD/web2py component improved web2py_trap_form

2011-04-11 Thread selecta
*bump* massimo will you include this? On Apr 7, 11:46 am, selecta wrote: > itsnt it annoying that when you have forms with multiple submit > buttons in a web2py component the button that is clicked to submit the > form is not submitted > here is a fix for web2py_ajax.html > > now you can have for

[web2py] Re: Fwd: web2py_1.92.1-1_i386.changes ACCEPTED into unstable

2011-04-11 Thread selecta
+1 yeay On Apr 10, 11:30 pm, Massimo Di Pierro wrote: > +1 > > On Apr 10, 9:35 am, José Luis Redrejo Rodríguez > wrote: > > > > > It's just been accepted into Debian. I'll upload latest stable version > > available (1.94.6) inwww.web2py.comtomorrow. > > So, from now on, Debian users can install

[web2py] pluginwiki and meta-menu

2011-04-11 Thread andrej burja
in meta-menu page in plugin-wiki i define menu link as Person page:person and this leads to url application/plugin_wiki/page/person what if i want to add link to application/person (not inside plugin_wiki) what is the syntax, if i don't want to include "http://www.example.com/application.

[web2py] Re: 'check exists' option for reseting password

2011-04-11 Thread Brian Will
That seems to do it. On Apr 11, 1:42 am, Brian Will wrote: > I'd rather my password reset form not check the db for the existence > of the email and just blindly give an 'an email has been sent' message > regardless of what email address is entered. > > In Auth.request_reset_password(), this shou

[web2py] 'check exists' option for reseting password

2011-04-11 Thread Brian Will
I'd rather my password reset form not check the db for the existence of the email and just blindly give an 'an email has been sent' message regardless of what email address is entered. In Auth.request_reset_password(), this should require simply making the second validator conditional upon an opti

Re: [web2py] Re: Import HTML file

2011-04-11 Thread Kenneth Lundström
On 11.4.2011 11:18, stefaan wrote: I know how to import CSV files, but how do I import a textfile and parse all lines. I don t want to all, and rest of tags in my source page to be used, I just want to parse the whole file line by line. It's not entirely clear to me what you want to accomplish

[web2py] Re: Import HTML file

2011-04-11 Thread stefaan
> I know how to import CSV files, but how do I import a textfile and parse > all lines. I don t want to all , and rest of tags in my > source page to be used, I just want to parse the whole file line by line. It's not entirely clear to me what you want to accomplish (what text file are we talking

  1   2   >