[web2py:38152] Re: Highligth search word in tekst with HTML tags en entities

2010-01-01 Thread Mengu
for this purpose i am using a jquery plugin named highlight. On Dec 31 2009, 6:05 pm, stelg stelg.best...@gmail.com wrote: Enclosed an example that i use to highlight words in a text string which might also contain HTML tags and entities. Maybe you can use it in your Web2py applications?  #

Re: [web2py:38153] Re: LOL

2010-01-01 Thread Jason Brower
Hehe... dang, link broken. :P Buy it! Make a site! Great idea! On Thu, 2009-12-31 at 12:31 +0100, Laszlo Zsolt Kiss wrote: Jake írta: Good luck with that On Dec 30, 11:27 pm, Massimo Di Pierro mdipie...@cs.depaul.edu wrote: http://london.craigslist.co.uk/stp/1531016430.html

[web2py:38154] Re: 1.74.5 is OUT

2010-01-01 Thread szimszon
There is a small thread about the behavior of the [id]: http://groups.google.com/group/web2py/browse_frm/thread/eca9b3d5e71c32f0/3f87cba2c93f5c2c?lnk=gstq=%5Bid%5D#3f87cba2c93f5c2c which says to me that: If I call crud with the http://127.0.0.1:8000/borverseny/adatok/sablonok url, the

[web2py:38155] Re: feature request: user/logout?_next=/foo/bar

2010-01-01 Thread selecta
thank you both, I will apply one or the other and a happy new year to you :) On Dec 29 2009, 3:57 am, Thadeus Burgess thade...@thadeusb.com wrote: What about... auth.settings.login_url = URL(r=request, c='admin/user', f='login') auth.settings.logged_url = URL(r=request, c='admin/user',

[web2py:38156] Re: Blogitizor

2010-01-01 Thread Leandro - ProfessionalIT
Hello David, On Dec 31 2009, 5:32 pm, villas villa...@gmail.com wrote: I vote in a planet, web2py-planet Could you specify the URL please. My google search returned Kpax, but that was described as a CMS from another planet so it can't be that one! I believe there is still this project ...

[web2py:38157] Re: Scalability of Web2py

2010-01-01 Thread Jake
I, for one, have no idea. There are a large number of stress testing tools available. Give it a try, and let us know :) On Dec 31 2009, 10:00 pm, vvk varunk.ap...@gmail.com wrote: Hi all, I've to write a portal for my college in next semester. I want to discuss regarding scalabilty of

[web2py:38159] Re: Scalability of Web2py

2010-01-01 Thread Mengu
Give it a try with apache bench :) On Jan 1, 5:00 am, vvk varunk.ap...@gmail.com wrote: Hi all, I've to write a portal for my college in next semester. I want to discuss regarding scalabilty of web2py. Configuration of Deployment: Apache + Mod WSGI + Postgresql + https only Can this

[web2py:38160] django and web2py

2010-01-01 Thread pihentagy
Hi all! After some django experience I tried to learn web2py. My impressions and issues: I cannot understand why you should write: Field('customer', db.partner, requires=IS_IN_DB(db, 'partner.id','partner.id')) and not just simply Field('customer') and on the other hand how a validator defines

[web2py:38161] Re: Getting error in web2py shell

2010-01-01 Thread mdipierro
The -M import models. Somewere in one of your models there you call the attribute lenght of a dict object (obj.len) and it does not exist. Massimo On Dec 31 2009, 8:31 pm, Sujan Shakya suzan.sha...@gmail.com wrote: When I run python web2py.py -M -S mywiki, I get the following error: In [9]:

[web2py:38162] Re: Catching logging slow load times

2010-01-01 Thread mdipierro
web2py/httpserver.log The last column is the time. On Dec 31 2009, 11:19 pm, toomim too...@gmail.com wrote: I'm building an app that can have ~50 users connecting at a time. I want to know if pages load slowly for them so I can make it faster. How can I find and record page the load times my

[web2py:38163] Re: SQLFORM.factory how to make a select field without database?

2010-01-01 Thread mdipierro
weekdays = (Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday) form = SQLFORM.factory(Field('dow',requires=IS_IN_SET(range (1,8),weekdays,multiple=True))) On Jan 1, 12:32 am, Brian M bmere...@gmail.com wrote: How would I go about creating a select field with SQLFORM.factory that gives

[web2py:38165] Re: 1.74.5 is OUT

2010-01-01 Thread mdipierro
You are right. There was an ambiguity in the previous version that made it behave in different ways in different cases. You you can specify this behavior: auth.settings.controller ='adatok' You can also set auth.settings.controller =None to make the controller to be the same as the one of the

[web2py:38166] Re: On Login failure

2010-01-01 Thread mdipierro
auth.settings.controller='myctl' On Jan 1, 8:01 am, kbochert kboch...@copper.net wrote: I'm trying to use my custom login page. In models\db.py I put         auth.settings.login_url = /myapp/myctl/user/login When I go to a protected page, I get the expected login page 'myapp

[web2py:38167] Re: Scalability of Web2py

2010-01-01 Thread mdipierro
It really depends on what Can this handle requests from 100 users every moment? means. The bottleneck is probably the db. Before you benchmark and/or go to production make sure you: - bytecode compile your app - set all your models to migrate = False Massimo On Dec 31 2009, 9:00 pm, vvk

[web2py:38168] Re: django and web2py

2010-01-01 Thread mdipierro
Hi Gergo, Thank you very much for your email. Your prospective as a Django user is very valuable here. On Jan 1, 9:48 am, pihentagy pihent...@gmail.com wrote: Hi all! After some django experience I tried to learn web2py. My impressions and issues: I cannot understand why you should write:

[web2py:38169] Re: 1.74.5 is OUT

2010-01-01 Thread szimszon
You mean crud.settings.controller ='adatok' ? Or what is the relation of auth and the next [id] thing? What if I doesn't have auth at all? If I understand it well then the crud next parameter's relative path is the uri's part after the application and the default controller: So the expected

[web2py:38171] Re: 1.74.5 is OUT

2010-01-01 Thread mdipierro
Sorry you are right. crud.settings.controller ='adatok' next can have three possible values: 1) a full url starting with http:// 2) an absolute url starting with / 3) a function/args than it is relative to /application/controller/ where controller is crud.settings.controller If in some early

[web2py:38172] Re: 1.74.5 is OUT

2010-01-01 Thread szimszon
Okay it's clear now. I have to modify my app then... :-o I have to say that it's better now :) But it's not right documented it the book :-o Thanks anyway. On jan. 1, 21:37, mdipierro mdipie...@cs.depaul.edu wrote: Sorry you are right.    crud.settings.controller ='adatok' next can have

[web2py:38173] plagiarism

2010-01-01 Thread Massimo Di Pierro
This guy http://stores.lulu.com/williambook plagiarizes books by other authors and sells them on lulu, including the web2py book. This is bad. Lulu.com has been contacted two days ago but no action so far. -- You received this message because you are subscribed to the Google Groups

[web2py:38174] Re: django and web2py

2010-01-01 Thread pihentagy
On Jan 1, 6:34 pm, mdipierro mdipie...@cs.depaul.edu wrote: On Jan 1, 9:48 am, pihentagy pihent...@gmail.com wrote: I cannot understand why you should write: Field('customer', db.partner, requires=IS_IN_DB(db, 'partner.id','partner.id')) and not just simply Field('customer') The

[web2py:38175] Custom form for auth profile

2010-01-01 Thread weheh
I'm making custom forms for all the auth stuff so that I have precise control over the look and feel in order to make it consistent with the rest of my site. I got a custom form working with login, but it's not working for profile. Things look like this: # view form.custom.begin, DIV(

[web2py:38176] Re: django and web2py

2010-01-01 Thread mdipierro
I think this is what you looking for. http://web2py.com/examples/static/epydoc/index.html On Jan 1, 4:11 pm, pihentagy pihent...@gmail.com wrote: On Jan 1, 6:34 pm, mdipierro mdipie...@cs.depaul.edu wrote: On Jan 1, 9:48 am, pihentagy pihent...@gmail.com wrote: I cannot understand why

[web2py:38177] Re: Custom form for auth profile

2010-01-01 Thread mdipierro
I suggest look at the generated default form first. I suspect the form.custom.widget.it that makes a hidden input field may be missing. On Jan 1, 4:43 pm, weheh richard_gor...@verizon.net wrote: I'm making custom forms for all the auth stuff so that I have precise control over the look and feel

[web2py:38178] Re: plagiarism

2010-01-01 Thread Yarko Tymciurak
This is truly terrible... particularly given that you already sell this title on Lulu --- shame on their processes... On Jan 1, 4:08 pm, Massimo Di Pierro mdipie...@cs.depaul.edu wrote: This guyhttp://stores.lulu.com/williambook plagiarizes books by other   authors and sells them on lulu,

[web2py:38181] Re: Custom form for auth profile

2010-01-01 Thread weheh
Massimo, there were indeed some hidden fields, but it made no difference whether I inserted them or not. I did discover that I had {{form.custom.begin}} instead of {{=form.custom.begin}} and {{form.custom.end}} instead of {{=form.custom.end}}, which I fixed, but that had no effect. I even got rid

Re: [web2py:38183] Re: Custom form for auth profile

2010-01-01 Thread Adnan Smajlovic
I am trying to workout the installation problem with HostGator, who unfortunately only supports Python 2.4 at the moment. I understand that I should go with 2.5 and need to take the risk to do it myself on just purchased VPS from them. Are there somewhere good instructions how to install version

[web2py:38184] Re: Custom form for auth profile

2010-01-01 Thread mdipierro
You should be able to web2py 1.74.5 run with 2.4 provided that they install for you pysqlite and hashlib. On Jan 1, 7:38 pm, Adnan Smajlovic adnan.smajlo...@gmail.com wrote: I am trying to workout the installation problem with HostGator, who unfortunately only supports Python 2.4 at the

[web2py:38185] google app engine not creating my user defined tables

2010-01-01 Thread Chad
I'm really enjoying learning web2py, but I am running into problems when using it with Google App Engine. I followed the example at http://www.web2py.com/AlterEgo/default/show/253 which works fine locally, but when trying to run in GAE I can't seem to create posts. When I look at the entities

[web2py:38187] Re: google app engine not creating my user defined tables

2010-01-01 Thread Chad
I can't create using appadmin either. When I click on the insert new post link I receive an internal error. insert new comment does the same thing. --- begin ticket data --- ticket_data value: (dp0 S'output' p1 S'' p2 sS'layer' p3 S'/base/data/home/apps/

[web2py:38188] Re: google app engine not creating my user defined tables

2010-01-01 Thread Chad
Also ... when running GAE locally the datastore works, I can create posts using the create_post action. When actually running in GAE it doesn't work, I receive a Internal Error when trying to view the create_post action. --- begin ticket data --- value: (dp0 S'output' p1 S'' p2 sS'layer' p3

[web2py:38189] Re: Custom form for auth profile

2010-01-01 Thread weheh
Massimo, The last 2 posts look like they're off thread. Back to the custom form with auth profile: # model auth_table = db.define_table( auth.settings.table_user_name, Field('email',length=128,label=T('Email'),default='',unique=True),

[web2py:38190] Re: google app engine not creating my user defined tables

2010-01-01 Thread mdipierro
What does the GAE log say, as opposed to the web2py ticket? Odd it runs on dev_appserver and not GAE. Could it be post is a reserved keyword and cannot be used as a mode name? If that is the case the docs do not say it. massimo On Jan 1, 10:09 pm, Chad chad.mic...@gmail.com wrote: Also ...

[web2py:38192] Re: Custom form for auth profile

2010-01-01 Thread mdipierro
The code below works for me. Something else is wrong in your code. Perhaps sessions are not being saved? auth.settings.table_user = db.define_table('auth_user', Field('email',length=128,label=T('Email'),default='',unique=True),

[web2py:38194] Re: Custom form for auth profile

2010-01-01 Thread weheh
Aha! I found the problem. My actual user table has an additional field in it that was missing in my view. When I add the field to the view, it all works fine, now. I think it's odd (perhaps a benign bug) that I don't get a ticket, which made my bug harder to discover. I had already pared down the

[web2py:38195] Re: google app engine not creating my user defined tables

2010-01-01 Thread mdipierro
I think the problem is the following: You need to run the program with dev_appserver, register, login and create some posts and some comments. As you use it locally, dev_appserver will write index.yaml for you and list the indices you need. After you have fully used the app locally then you upload

[web2py:38196] Re: Custom form for auth profile

2010-01-01 Thread mdipierro
You do not get a ticket because there is no programming error, it is just that the form submission does not pass validation and the validation error cannot be displayed because the widget associated to the field that should display the error is not there. When you have form errors it is always

[web2py:38197] Re: Custom form for auth profile

2010-01-01 Thread weheh
Yes, indeed, if I add to the user() controller the following code: form=auth() if form.errors: response.flash=DIV(form.errors,_class='error') Then I would have seen immediately that one of my fields was missing from the view. Perhaps this should be the default behavior of the auth