[web2py] Re: matplotlib vs mod_wsgi... again

2011-05-31 Thread Manuele Pesenti
Ok, here it is the steps I followed... on a new web2py instance version 1.95.1 (2011-04-25 15:04:14) installed under mod_wsgi 3.3 and Apache/2.2.3 and python 2.6 I have downloaded and installed matplotlib-1.0.0 than under the welcome application I have installed plugin_matplotlib but visiting

Re: Re : Re: [web2py] Re: Email invitation

2011-05-31 Thread Anthony
On Tuesday, May 31, 2011 8:31:25 PM UTC-7, encompass wrote: > > Or interestID. > It's still in alpha, but it does invites too. :D > It's "A conference management tool for the entire event life-cycle." > It's a shameless plug cause it runs on Web2py. :D What's the URL?

Re: [web2py] Re: Cannot register or login a user

2011-05-31 Thread Jon Molesa
I started a new app by copying the welcome folder instead of using the wizard. I copied over the models, views, and controllers from my old app. I also updated web2py to the latest. Using local account reg and login works perfectly. Enabling janrain bring up the login form, but after authenticating

[web2py] Re: How do we handle concurrent db update?

2011-05-31 Thread Mathew Grabau
Yes - that is exactly the problem that transactions are intended to take care of. What would writing raw SQL do? Raw SQL statements (unless explicitly contained in a transaction) would be executed outside of the transaction and therefore still vulnerable. On May 31, 6:57 pm, David J wrote: > I a

Re: [web2py] Markmin with Markitup is not not playing right...

2011-05-31 Thread Bruno Rocha
You need the markitup that us packed within plugin_wiki. Massimo made some changes Em 01/06/2011 00:38, "Jason Brower" escreveu: > So I know I have markItUp installed... (Notice Screenshot.png) > But I get this error... (Notice Screenshot-1.png) > What could I possibly be doing wrong here? > Best

[web2py] Re: Fwd: Markmin with Markitup is not not playing right...

2011-05-31 Thread pbreit
Your code looks different from I see here: http://markitup.jaysalvat.com/documentation/ Maybe we need to see your view code?

Re: Re : Re: [web2py] Re: Email invitation

2011-05-31 Thread Jason Brower
On 06/01/2011 04:51 AM, pbreit wrote: Maybe we should take a step back and try to understand what you are doing? You want to send out emails to some list of people? And include in that email a link which brings them back to your web site where they, and only they, can register for something?

Re: [web2py] Re: LOAD: ajax_trap errors...

2011-05-31 Thread pbreit
I'm pretty comfortable with the current pace. I think the next logical bit of progress would be to have two branches: 1) the current trunk and 2) the current 1.xx.x releases with critical bug fixes.

Re: [web2py] Re: web2py rpc

2011-05-31 Thread Stifan Kristi
Thank you so much for your detail explaination, example and reference, pbreit, honestly, i'm new in this feature, and don't know what is the use for when i follow the guidance in the book, now, my mind is open and i'll learn it on the book. On Wed, Jun 1, 2011 at 8:46 AM, pbreit wrote: > I'm not

Re: Re : Re: [web2py] Re: Email invitation

2011-05-31 Thread pbreit
Maybe we should take a step back and try to understand what you are doing? You want to send out emails to some list of people? And include in that email a link which brings them back to your web site where they, and only they, can register for something? If you are trying to learn how to progra

[web2py] Re: web2py rpc

2011-05-31 Thread pbreit
I'm not sure you're going to get a better explanation than what's in the book, which is excellent. These are sort of easy, sort of standardized ways way to create interfaces between different systems. For example, PayPal supports a SOAP interface in which case you can use the SOAP capabilities

[web2py] web2py rpc

2011-05-31 Thread 黄祥
hi, did anyone can explain what is web2py rpc used for? i've already read http://web2py.com/book/default/chapter/09#Remote-Procedure-Calls but still don't get it what web2py rpc (XMLRPC, JSONRPC and Pyjamas, AMFRPC, SOAP) used for in the application. thank you so much before

Re: [web2py] Re: LOAD: ajax_trap errors...

2011-05-31 Thread Anthony
On Tuesday, May 31, 2011 1:33:34 PM UTC-7, sebastian wrote: > > Hi cfh > > I agree with you and I believe in the community. So any time that I can I > give my small contribution to different communities (web2py is one of them). > At the same time I believe that the main reason because web2py is

[web2py] Re: validator for self-join

2011-05-31 Thread Dave
Thanks, that did it! On May 6, 9:56 am, pbreit wrote: > I think this might be what you want: > > crud.settings.create_onvalidation.mytablename.append(lambda form:) > > http://web2py.com/book/default/chapter/07#Settings

Re: Re : Re: [web2py] Re: Email invitation

2011-05-31 Thread Dwayne Blind
At the beginning, I was thinking of granting some permissions to the registration page. Isn't that possible ? Thanks for your help, Dwayne On 1 juin, 00:43, Dwayne Blind wrote: > On 31 mai, 20:56, Jonathan Lundell wrote: > > > On May 31, 2011, at 11:46 AM, Dwayne Blind wrote: > > > > Thank you

Re: [web2py] Re: How do we handle concurrent db update?

2011-05-31 Thread David J
I am confused. Isn't this exactly what transactions are for? On May 31, 2011 7:54 PM, "pbreit" wrote: > We aren't talking about a bank account (and even if we were, that's why > banks rely on reconciliation procedures), we are talking about a booking > system. It's like security, you're never 100%

Re: [web2py] Re: uuid and id comparation

2011-05-31 Thread Stifan Kristi
thank you so much for your detail explaination and reference, pbreit. On Wed, Jun 1, 2011 at 6:48 AM, pbreit wrote: > The two are mostly unrelated. > > uuid is a python library that you generally don't need to use or worry > about. It basically generates a unique string. > http://docs.python.org

[web2py] Re: How do we handle concurrent db update?

2011-05-31 Thread pbreit
We aren't talking about a bank account (and even if we were, that's why banks rely on reconciliation procedures), we are talking about a booking system. It's like security, you're never 100%, just as close to 100% as you need to be.

[web2py] Re: possible bug in main.py when using GAE.

2011-05-31 Thread pbreit
GAE doesn't support "socket" so that probably needs to be changed, perhaps to os.environ['REMOTE_ADDR']

[web2py] Re: How do we handle concurrent db update?

2011-05-31 Thread kawate
This is not a theoretical but a very actual and serious problem. Think about a bank account, you might be in a deadly embrace. Web2py is not a only user that access database. So the problem is not solved in web2py. If i were you, i would write a raw sql statement. On 6月1日, 午前1:25, pbreit wrote:

[web2py] Re: uuid and id comparation

2011-05-31 Thread pbreit
The two are mostly unrelated. uuid is a python library that you generally don't need to use or worry about. It basically generates a unique string. http://docs.python.org/library/uuid.html id, when talking about web2py, usually refers to the "id" field that Web2py automatically adds to every ta

[web2py] uuid and id comparation

2011-05-31 Thread 黄祥
hi, did anyone know the comparation between uuid and id? and what is use for? thank you so much in advance

[web2py] possible bug in main.py when using GAE.

2011-05-31 Thread Matt
HI there, I've just updated my codebase to the latest in trunk (Version 1.96.0 (2011-05-31 10:38:00)) When I attempt to run my GAE app via the launcher (1.5) I get the following error: ERROR2011-05-31 23:28:34,017 restricted.py:148] Traceback (most recent call last): File "/Projects/www/a

Re: [web2py] Re: LOAD: ajax_trap errors...

2011-05-31 Thread pbreit
I kind of understand but realistically I think Web2py users have to recognize where the framework is at. It is still being iterated on at a very rapid pace. If you need stability, stay on an previous version. If you run into problems with esoteric features, don't use them or try to fix them loc

Re: Re : Re: [web2py] Re: Email invitation

2011-05-31 Thread Dwayne Blind
On 31 mai, 20:56, Jonathan Lundell wrote: > On May 31, 2011, at 11:46 AM, Dwayne Blind wrote: > > > Thank you Jonathan. I added the argument host='127.0.0.1:8000' to the URL. > > There's a separate port argument that you might want to use, rather than > including the port in the host. (Though in

[web2py] Re: dashboard...

2011-05-31 Thread Massimo Di Pierro
very old code, should be rewritten using LOAD(...). On May 31, 5:25 pm, Bruno Rocha wrote: > Are you aware of it?   > ->http://web2py.com/jpolite/ > > -- > Bruno Rocha > [ About me:http://zerp.ly/rochacbruno] > [ Aprenda a programar:http://CursoDePython.

[web2py] Re: Markmin nested list

2011-05-31 Thread Massimo Di Pierro
Not supported but should be. On May 31, 2:31 pm, snapy666 wrote: > Hello, > > how can I make nested lists with markmin? With markdown you can indent > it with four spaces to go to the next level. > > Thanks in advance > > regards, > snapy666

Re: [web2py] Re: super in templates

2011-05-31 Thread Thadeus Burgess
Ah right, you can't have includes inside of blocks ! This is not a bug, just a side-effect of how includes are implemented vs blocks. I know understand the reasoning behind the str(t.content) patch, which was a workaround to getting includes to work inside of blocks, but not the proper solution.

[web2py] running python on client side browser

2011-05-31 Thread selecta
in case you do no know this yet http://syntensity.com/static/python.html

Re: [web2py] dashboard...

2011-05-31 Thread Bruno Rocha
Are you aware of it? -> http://web2py.com/jpolite/ -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ] [ Consultoria em de

[web2py] Re: getting a formstyle with 2 fields per row

2011-05-31 Thread pbreit
I use custom forms for all my forms: http://pricetack.com Then you can do whatever you want. http://web2py.com/book/default/chapter/07#Custom-forms

[web2py] crud onaccept vs form.accepts - is this expected

2011-05-31 Thread selecta
def edit(): record_id = request.args(0) def on_accept(form): print 'in on accept' response.headers['web2py-component-command'] = XML("web2py_component('%s','list')"%URL('list')) if not record_id: db.plugin_whishlist.open.readable, db.plugin_whishlist.open.writabl

[web2py] dashboard...

2011-05-31 Thread Richard Vézina
Hello All, Here a 5 min search and a bunch of links refering differents dashboard implementation or code : http://plugins.jquery.com/plugin-tags/dashboard http://civicactions.com/blog/2009/feb/22/jquerydashboard_plugin http://jqueryui.com/demos/sortable/#portlets http://stackoverflow.com/question

[web2py] Re: field.represent doesn't work with plugin_jqgrid in controller

2011-05-31 Thread Dmitriy
It is a problem. I need to have the id field link to the two different controllers in the one table. For example: 1) db.define_table('plot', Field('id','id', represent=lambda id: SPAN(id,' ',A('edit',_href=URL(r=request,c='controller1',f='plot_update',args=id))) 2) db.define_table('

[web2py] Re: getting a formstyle with 2 fields per row

2011-05-31 Thread apple
Sorry formatting not quite as expected. I meant: Name: xxx Address: xxx Age:xx date of b: xx On May 31, 10:17 pm, apple wrote: > I would like my forms to show 2 fields per row so they take up less > vertical space on the screen e.g. > > Name: X         Add

[web2py] getting a formstyle with 2 fields per row

2011-05-31 Thread apple
I would like my forms to show 2 fields per row so they take up less vertical space on the screen e.g. Name: X Address: xx Age: xx Date of birth: x Had a look at custom formstyles but this only allows customisi

[web2py] error on crud.update delete

2011-05-31 Thread selecta
ERROR:web2py:Traceback (most recent call last): File "/home/select/Dev/web2py/gluon/restricted.py", line 181, in restricted exec ccode in environment File "/home/select/Dev/web2py/applications/pyMantis/controllers/ plugin_whishlist.py", line 118, in File "/home/select/Dev/web2py/gluon/gl

Re: [web2py] Re: LOAD: ajax_trap errors...

2011-05-31 Thread Sebastian E. Ovide
Hi cfh I agree with you and I believe in the community. So any time that I can I give my small contribution to different communities (web2py is one of them). At the same time I believe that the main reason because web2py is not so commercially popular as Django o RoR (just have a look to any job s

[web2py] Re: Err on request_reset_password

2011-05-31 Thread pbreit
I think I might know what the problem is. I recently switched mailers and I suspect I'm hitting this: if not self.settings.mailer: response.flash = self.messages.function_disabled return '' Should/could this raise a more descriptive error?

[web2py] Re: Err on request_reset_password

2011-05-31 Thread pbreit
Also, the error is on this line: {{=form.custom.begin}}

[web2py] Re: Err on request_reset_password

2011-05-31 Thread pbreit
Note that I am using a custom form. I have been trying different changesets but can't seem to pinpoint the problem in my code or web2py. {{elif request.args(0)=='request_reset_password':}} Reset Password {{=form.custom.begin}} Email: {{=form.custom.widget.email}

[web2py] Markmin nested list

2011-05-31 Thread snapy666
Hello, how can I make nested lists with markmin? With markdown you can indent it with four spaces to go to the next level. Thanks in advance regards, snapy666

[web2py] Err on request_reset_password

2011-05-31 Thread pbreit
I'm getting an error on request_reset_password. Traceback (most recent call last): File "/Users/pbreit/web2py/gluon/restricted.py", line 184, in restricted exec ccode in environment File "/Users/pbreit/web2py/applications/init/views/default/user.html", line 160, in AttributeError: 'str'

[web2py] Re: super in templates

2011-05-31 Thread teemu
Hi I tried to figure out this problem more carefully and I found the reason why my app didn't work anymore: If the parent block contains {{include 'some_file'}} and view tries to extend it by calling {{super}}, whole parent block will be ignored!!! I don't see any error messages etc. This behavio

Re: Re : Re: [web2py] Re: Email invitation

2011-05-31 Thread Jonathan Lundell
On May 31, 2011, at 11:46 AM, Dwayne Blind wrote: > Thank you Jonathan. I added the argument host='127.0.0.1:8000' to the URL. There's a separate port argument that you might want to use, rather than including the port in the host. (Though in this case it doesn't make any difference, I think.)

Re : Re: [web2py] Re: Email invitation

2011-05-31 Thread Dwayne Blind
Thank you Jonathan. I added the argument host='127.0.0.1:8000' to the URL. I thank user570039 ( http://stackoverflow.com/questions/6087855/django-vs-pylons-vs-web2py-registration-invitation-events ). Here is the final code, corrected from two typos ("uuid" instead of "token") : # coding: utf

[web2py] Re: Most basic use of Views

2011-05-31 Thread Dwayne Blind
You are right. Dwayne On 31 mai, 17:29, pbreit wrote: > I'm sure the paper version of the book is good but it's beneficial to become > proficient at searching the online book.

[web2py] web2py_component() Problem

2011-05-31 Thread David J.
I see a strange behavior using web2py_component() I am using current Trunk version; I have the following code. href="javascript:web2py_component('contacts.load','contact_list')">Load Contacts The URL is http://mydomain.com/list (or whatever controller) clicking the link on the page work

[web2py] Re: Google app engine

2011-05-31 Thread dhmorgan
You probably *will* want to to get Python 2.5.x also, your app name cannot be web2py because there is already an app by that name at web2py.appspot.com; rename your app to a name you've registered at appspot and edit your app.yaml file accordingly, then try again Danny On May 27, 11:22 pm, Re

[web2py] Re: importing a db/model from other app

2011-05-31 Thread mart
yeah that works, although both apps need to know about the model and one of the 2 apps needs to have migrate=True. Mart :) On May 31, 11:50 am, pbreit wrote: > It appears that DAL() supports a variable "folder". Maybe that would work? > > ### create DAL connection (and create DB if not exists) >

Re: [web2py] super in templates

2011-05-31 Thread Bruno Rocha
On Tue, May 31, 2011 at 12:52 PM, pbreit wrote: > What does "super" do? I don't see it in the docs. Having a block defined in layout.html {{block sidebar}} something {{end}} if you want to extend this in any view and inherit the content of the original you can use {{super}} index.html {{blo

[web2py] Re: How do we handle concurrent db update?

2011-05-31 Thread pbreit
It's a theoretical problem, not an actual one. If you check room availability before reserving the room, you'll be fine. If your service ever gets enough traffic for it to become a problem (highly unlikely), you will have the resources to address it. It's better to spend your energy trying to g

[web2py] Re: How do we handle concurrent db update?

2011-05-31 Thread Iceberg
On May 31, 11:10 pm, pbreit wrote: > I wouldn't worry too much about it. As long as you check for its > availability immediately before assigning it to a traveler, you'll be fine. > Then you'll need to run a periodic job to release pending reservations that > do not complete. But I am not that c

[web2py] Re: Postgresql database schema

2011-05-31 Thread Mathew Grabau
You could always do the db.define_table calls specific to the tables that are in the schema: def define_schema1(): db.define_table("table1") # and so forth def define_schema1(): db.define_table("tablea") # and so forth # later on... (after changing the schema) if current_schema

[web2py] Re: How do we handle concurrent db update?

2011-05-31 Thread ron_m
If you have a record version number field in the table then you can read it for the record of interest. When you go to update the record you specify the expected version number in the update equivalent to the SQL WHERE along with the field id so if the version number has been incremented by anot

[web2py] Re: bug in latest trunk - incomplete fields

2011-05-31 Thread Massimo Di Pierro
very good catch! On May 31, 10:07 am, Carlos wrote: > Hi, > > I believe there's a bug in dal.py (latest trunk), lines # 4439 and 4440. > > Currently ... > >             if isinstance(field, Field) and not field.name in fieldnames: >                 if hasattr(field, '_db'): >                    

[web2py] Re: ProgrammingError: there is no unique constraint matching given keys for referenced table "xuser"

2011-05-31 Thread Massimo Di Pierro
You are correct. Thanks for reporting this problem. This should now be fixed in trunk. Massimo On May 31, 9:15 am, Carlos wrote: > Hi Massimo, > > I believe I've found the problem, it happens with any table (not just > auth_user). > > If I define the 'id' field in any position other than first,

Re: [web2py] super in templates

2011-05-31 Thread pbreit
What does "super" do? I don't see it in the docs.

[web2py] Re: importing a db/model from other app

2011-05-31 Thread pbreit
It appears that DAL() supports a variable "folder". Maybe that would work? ### create DAL connection (and create DB if not exists) >>> db=DAL(('mysql://a:b@locahost/x','sqlite://storage.sqlite'),folder=None)

[web2py] Re: Changing an id... could it be really bad?

2011-05-31 Thread ron_m
If the id in the link the 11 or 12 is then used to reference an id in the database which is an id field in the DAL definition sense then the database engine will usually block you. The id field at the database level is meant to be a non repeating key so reuse of an id numeric value is discourage

[web2py] Re: Changing an id... could it be really bad?

2011-05-31 Thread pbreit
You want to avoid changing id's if at all possible because it can easily cause the DB to become inconsistent. I suppose in a worse case scenario you might be able to change it with a database tool (there's an SQLite add-on for Firefox). If you move forward, make sure to consider any other refer

[web2py] Re: field.represent doesn't work with plugin_jqgrid in controller

2011-05-31 Thread pbreit
Isn't it a problem including a field "id" in your table since Web2py already does that?

[web2py] Re: Most basic use of Views

2011-05-31 Thread pbreit
I'm sure the paper version of the book is good but it's beneficial to become proficient at searching the online book.

[web2py] Re: ProgrammingError: there is no unique constraint matching given keys for referenced table "xuser"

2011-05-31 Thread pbreit
It sounds like you know what you are doing but I'll point out that typically you don't define an 'id' field since Web2py does that already.

Re: [web2py] new site in web2py

2011-05-31 Thread Stifan Kristi
very cool, congratulations, keep happy web2pying...

[web2py] Re: Most basic use of Views

2011-05-31 Thread Dwayne Blind
Thank you pbreit. I have already gone through chapter 3. It convinced me to try web2py. I also ordered the web2py book on Amazon. Dwayne On 31 mai, 17:14, pbreit wrote: > The Book's search function works pretty well for most search > terms:http://web2py.com/book/default/search?search=beautif

[web2py] Re: versioning and uploads

2011-05-31 Thread pbreit
Which .hgignore? The main distro includes: applications/*/uploads/* http://code.google.com/p/web2py/source/browse/.hgignore#45

[web2py] Re: Most basic use of Views

2011-05-31 Thread pbreit
The Book's search function works pretty well for most search terms: http://web2py.com/book/default/search?search=beautify T() is for translating text into other languages. I typically advise new users to not use it in the beginning, especially if you have no intention of translating your site.

[web2py] Re: How do we handle concurrent db update?

2011-05-31 Thread pbreit
I wouldn't worry too much about it. As long as you check for its availability immediately before assigning it to a traveler, you'll be fine. Then you'll need to run a periodic job to release pending reservations that do not complete.

[web2py] bug in latest trunk - incomplete fields

2011-05-31 Thread Carlos
Hi, I believe there's a bug in dal.py (latest trunk), lines # 4439 and 4440. Currently ... if isinstance(field, Field) and not field.name in fieldnames: if hasattr(field, '_db'): field = copy.copy(field) else: ne

[web2py] Re: Most basic use of Views

2011-05-31 Thread Dwayne Blind
Thank you Massimo. Where can I read more about the beautify function ? Dwayne On 31 mai, 14:22, Massimo Di Pierro wrote: > I think you want to remove > > {{=BEAUTIFY (response vars/response> ._vars)}} > > Massimo > > On May 31, 4:23 am, Dwayne Blind wrote: > > > > > Dear all, > > > Here is th

Re: [web2py] Re: new site in web2py

2011-05-31 Thread danto
2011/5/31 JorgeRpo > very nice!! > > a lil suggestion: set the links to be open in a new window > what a quick response! :) I'll do it, thank you for your suggestion!

[web2py] Re: new site in web2py

2011-05-31 Thread JorgeRpo
very nice!! a lil suggestion: set the links to be open in a new window

[web2py] Re: How do we handle concurrent db update?

2011-05-31 Thread Iceberg
On May 31, 10:29 pm, Vasile Ermicioi wrote: > you can use record versioning to solve that somehow > > http://web2py.com/book/default/chapter/07#Record-Versioning Thanks for the feedback, but the info you provided is for archive, not for dealing with parallel update. Or do I miss something? Rega

[web2py] new site in web2py

2011-05-31 Thread danto
Hi, to gain experience with python, ajax and my beloved framework I developed an app accesible from http://blogosfera.cl The intention of the site is to give oportunity for anyone to publish it's site on the chilean blogosphere. Later I will put a ranking system. Despite it's still on development

Re: [web2py] How do we handle concurrent db update?

2011-05-31 Thread Vasile Ermicioi
you can use record versioning to solve that somehow http://web2py.com/book/default/chapter/07#Record-Versioning

[web2py] versioning and uploads

2011-05-31 Thread Joseph.Piron
Hi all, I wonder if the uploads directory shouldn't be added in the .hgignore file by the versioning command live databases, cache and so on. What do you think ?

[web2py] Re: ProgrammingError: there is no unique constraint matching given keys for referenced table "xuser"

2011-05-31 Thread Carlos
Hi Massimo, I believe I've found the problem, it happens with any table (not just auth_user). If I define the 'id' field in any position other than first, and if there are references to the same table, then the error occurs. E.g. db.define_table( 'xtable', Field('xfield'),

[web2py] matplotlib vs mod_wsgi... again

2011-05-31 Thread Manuele Pesenti
Hi *, old question still without answer... installing plugin_matplotlib inside the welcome app under a web2py installation that runs under apache using mod_wsgi I still got this: AttributeError: 'module' object has no attribute 'cbook' but the solution to load matplotlib and matplotlib.cbook

[web2py] field.represent doesn't work with plugin_jqgrid in controller

2011-05-31 Thread Dmitriy
It is works inside model file. But I have several controllers that working with a same table and I need to set the controller name in model. Currently I can't setup second controller. So assigning field.represent in model is not suitable for me. Can anyone describe me why assigning the field.repre

Re: [web2py] Changing an id... could it be really bad?

2011-05-31 Thread Bruno Rocha
I guess it is better to have a redirect mechanism. If the id in args does not exist you can try a lower one. Or upper. Or may be create a reference table. Em 31/05/2011 08:20, "Jason (spot) Brower" escreveu: > I want to change the id of one of my items to the id of one that I have > deleted to avo

[web2py] Re: Most basic use of Views

2011-05-31 Thread Massimo Di Pierro
I think you want to remove {{=BEAUTIFY (response ._vars)}} Massimo On May 31, 4:23 am, Dwayne Blind wrote: > Dear all, > > Here is the content of the view "myproject/views/invitation/invitation.html" > : > > {{extend 'layout.html'}} > {{=message}} > {{=T ('Enter an email address :')}} > {{=form

[web2py] Re: Changing an id... could it be really bad?

2011-05-31 Thread Massimo Di Pierro
I do not understand On May 31, 6:20 am, "Jason (spot) Brower" wrote: > I want to change the id of one of my items to the id of one that I have > deleted to avoid some URL rot. > Basically, I have:http://interestid.com/welcome/default/view_event/12 > and I want it to be:http://interestid.com/welco

[web2py] Re: unicode problem in DAL

2011-05-31 Thread Massimo Di Pierro
I am not sure there is a problem here. I cannot help without seeing an example of the data you insert. If you do: db.table.insert(**a) a must be a dictionary with str key and str (ut8 encoded) values. You cannot have unicode field names. Massimo On May 31, 2:40 am, Phyo Arkar wrote: > I hav

[web2py] Re: {{=response.toolbar()}}

2011-05-31 Thread Massimo Di Pierro
You must have an older web2py version On May 31, 1:04 am, Johan wrote: > Hi, > > I get following error when I include this in my default index view: > > Traceback (most recent call last): >   File "/Users/webdev/web2py/gluon/restricted.py", line 181, in > restricted >     exec ccode in environmen

Re: [web2py] Re: Thanks to all members for all you time and effort !!

2011-05-31 Thread Jason (spot) Brower
It's a great framework when you know you can make a quick application for some problem at the office on your lunch break. You can't do that in many webframeworks, I tell you that much. (I made a lunch coordination software in about an hour.) Congrats and good luck! BR, Jason Brower On Tue, May 3

[web2py] Changing an id... could it be really bad?

2011-05-31 Thread Jason (spot) Brower
I want to change the id of one of my items to the id of one that I have deleted to avoid some URL rot. Basically, I have: http://interestid.com/welcome/default/view_event/12 and I want it to be: http://interestid.com/welcome/default/view_event/11 ID 11 is gone now and 12 is the new one. But my lin

[web2py] Re: importing a db/model from other app

2011-05-31 Thread blackthorne
well, a script than runs every time when loading my admin app to copy/ sync the models's and the model DAL line, should work... I think I will go for that solution if I can't find anything better. On May 31, 5:38 am, mart wrote: > well then, not sure then is this helps, but I have 1 web app look

[web2py] Re: importing a db/model from other app

2011-05-31 Thread blackthorne
Yes, that is the thing I want to change. I don't want to be dependent of the source app, just its db/model. All I want is an admin app that plugs into any other app by simply defining it's name or path. It should run on the same machine and there should be no problem in importing things by path. Un

[web2py] Re: Purpose of is_active in auth.signature?

2011-05-31 Thread villas
It was initially introduced with plugin_wiki and then included in auth.signature for convenience. I believe you can use it for your own purpose. On May 30, 8:10 pm, pbreit wrote: > If I use auth.signature in my own tables, I get is_active. Can I use it or > is it reserved for something else? I u

[web2py] Most basic use of Views

2011-05-31 Thread Dwayne Blind
Dear all, Here is the content of the view "myproject/views/invitation/invitation.html" : {{extend 'layout.html'}} {{=message}} {{=T ('Enter an email address :')}} {{=form}} {{=BEAUTIFY (response ._vars)}} It works fine. The problem is that the output adds a summary of the variables inside t

[web2py] How do we handle concurrent db update?

2011-05-31 Thread Iceberg
Hi there, I got stuck with how or whether we can deal with the concurrent db update, without the "overwrite" problem. This should be fundamental but my brain is out of ideas. Please guide me. Well, one specific example as a background. Think about a booking system. db.define_table('resource'

[web2py] Re : Re: Email invitation

2011-05-31 Thread Dwayne Blind
Thank you very much Massimo. The "import uuid" had to be added inside the "invitation" function, not outside. Thanks a lot to all three of you.

Re: [web2py] Re: Postgresql database schema

2011-05-31 Thread Massimiliano
Sure... That is the way I'm follow... Fortunately I haven't tables with the same name... Ciao On Tue, May 31, 2011 at 3:50 AM, Mathew Grabau wrote: > You could always change the schema before executing the db commands: > > db.executesql("set search_path to 'schemaname,public';") > > If you coul

Re: [web2py] unicode problem in DAL

2011-05-31 Thread Phyo Arkar
I have the exactly same problem here. Can anyone look into it? thanks alot. Stef have you found a solution? On Fri, Nov 5, 2010 at 5:47 PM, Stef Mientki wrote: > > I'm trying to insert a record with a filed value >  u"ëLocatie" > > and I get an error in sql.Table._insert at the last line: >    

[web2py] DAL and Unicode problem

2011-05-31 Thread Phyo Arkar
Hello all I am having unicode problem whenever i try inserting into Database by doing this : db.tbl_data.insert( **data_dict ) when data_dict have a field with unicde value , decoded in UTF-8 . How can i insert ? Why unicode is not fully supported by Web2py DAL ..? Regards, Phyo.