Sent to your DePaul e-mail address.
I am looking forward to a solution to that problem as MySQL doesn't work
neither on DotCloud (error creating a table, see other post).
Perhaps these links will help:
http://groups.google.com/group/google-appengine/browse_thread/thread/21478bd9185dcc32/f61b532da5c46588?lnk=gst&q=index+reads#f61b532da5c46588
http://groups.google.com/group/google-appengine/browse_thread/thread/bdb45e04dd8f959e/0659767c7878bafb?lnk=gst&q=index+rea
Hi,
After having errors in PostgreSQL, I moved to MySQL and also got errors.
With MySQL, I can't create some tables (but some tables worked!).
Error:
Traceback (most recent call last):
File "/home/dotcloud/current/gluon/restricted.py", line 204, in restricted
exec ccode in environment
Fi
I see, thanks for your help!
Cheers,
Thomas
Not quote. First, your model must exactly describe what is in the db.
Then you set fake_migrate=True, this will create the metadata. Then
you set fake_migrate=False (or remove it) and migrate=True. Not you
can change the model and web2py will perform the ALTER TABLE.
If web2py does not know what i
Indeed, I am talking about (3), and in that case, running with migrate=True
raises an error (table already exists).
The table had been created by web2py so of course it exists.
In case (3) should I also have fake_migrate=True?
On Sat, Dec 31, 2011 at 12:58 PM, Massimo Di Pierro <
massimo.dipie..
There are various scenarios:
1) the table exist in db but were not created by web2py
run at least once with migrate=True,fake_migrate=True
2) the table exist in db and where created by web2py (or you run
fake_migrate once)
it is ok to run with migrate=False
3) web2py is aware of the tables (create
But if we change the table definition, for example we add one field, it
will not be updated then, isn't it?
How can we migrate a MySQL table?
I am using routers for multiple domains like this:
routers = dict(
BASE = dict(
domains = {
'domain1' : 'init',
'domain2' : 'admin',
},
),
)
Problem is when accessing domain1/appadmin it redirects me to domain1/admin
to login, which does not exist. That app
I will do it thank you.
On Dec 31, 9:15 am, Bruno Rocha wrote:
> I did not updated the current web2pyslices website because I am developing
> a new one based on my new CMS.
>
> recently the registration_id field is now required by Auth but your table
> does not have it.
>
> Simply add to your aut
I did not updated the current web2pyslices website because I am developing
a new one based on my new CMS.
recently the registration_id field is now required by Auth but your table
does not have it.
Simply add to your auth_user table a new field called registration_id, you
can do using extra_field
you can download source code from http://www.web2pyslices.com/faq and
test on 1.99.4
I've been using same log in module with web2pyslices for a long time
and it works perfectly, but recently, I got log in issue after I
upgrade to 1.99.4(I used to work well on 1.91.6), when you register a
new user then log off, when you log in again, there are error
information like" 'registration_i
Thanks Bruno! To solve it, you used CAT() instead of returning a list. I
have updated my code and tested. Thanks again for the help!
I got the same problem, I think I solved it (but I cant remember how)
it is working here:
http://labs.blouweb.com/movuca3/article/show/3/flying-spaguetti-monster
(you can register/login to test) I am using your plugin in comments and
also in article creator.
The source is in github.
On Fri, Dec
Was recently informed of a problem with plugin_ckeditor that I have been
trying to solve for a while now, but I think it may actually be a web2py
bug. First of all, here is the widget:
def widget(self, field, value, **attributes):
"""
To be used with db.table.field.widget to set
Please open a ticket. Indeed this option is missing.
On Dec 30, 12:13 pm, Alexandre Andrade
wrote:
> I cant found a way to translate the "Submit" button and 'Check to delete'
> using smartgrid.
>
> crud.settings doenst work.
>
> Any tips?
>
> --
> Atenciosamente
>
> Alexandre Andrade
> Hiperc
I cant found a way to translate the "Submit" button and 'Check to delete'
using smartgrid.
crud.settings doenst work.
Any tips?
--
Atenciosamente
Alexandre Andrade
Hipercenter.com Classificados Gratuitos
Thanks Massimo. Happy New Year's Eve :)
I'm not sure what considerations went into this, that a single new
line is not given a "br" at the end. (it can still be interpreted as a
continuation of the same paragraph, regardless)
I hope you will consider adding this feature (each new line gets a
"br"
The "insert" method returns the id of the inserted row.
The "update_or_insert" method returns the id of the inserted row, but
returns None in case of an update...
Why is it so?
I have a case in which I want to update_or_insert and then further
update the corresponding row (to track the status of
Thank you Massimo. Happy New Year's Eve :)
After fiddling with markmin for hours and reading
http://web2py.com/examples/static/markmin.html
a few times, I made a suggestion I hope you will consider including:
http://code.google.com/p/web2py/issues/detail?id=588
I don't know where I might be able
On Friday, December 30, 2011 11:25:51 AM UTC-5, Massimo Di Pierro wrote:
>
> You have to do:
>
> db.define_table('name',...,migrate=settings.migrate)
>
> The table has to be defined because web2py needs to know how to map
> SQL types into web2py types. The migrate argument, when set to False,
>
There are two ways around it:
- hopefully the apt module can be configured to send output to a file
- if not, use the python subprocess module to run the code is a
separate process. The popen function has the ability to capture the
output.
On Dec 29, 9:21 pm, blackshirt wrote:
> i have a little p
It was actually fixed a couple weeks ago (for the second time). :-)
On Friday, December 30, 2011 11:20:34 AM UTC-5, Khalil KHAMLICHI wrote:
>
> excellent bug fixing time : 7 minutes.
> Thanks.
>
> On Fri, Dec 30, 2011 at 3:26 PM, Paolo Caruccio wrote:
>
>> fixed in trunk
>>
>>
>> http://code.googl
You have to do:
db.define_table('name',...,migrate=settings.migrate)
The table has to be defined because web2py needs to know how to map
SQL types into web2py types. The migrate argument, when set to False,
will prevent the "CREATE TABLE". Anyway, web2py does not "CREATE
TABLE" if it exists alrea
On Friday, December 30, 2011 4:22:29 AM UTC-5, Joseph Jude wrote:
>
> Let us say I have the below code in db.py under models
>
> define_table(db, )
>
> If I change that to,
> if settings.migrate:
>define_table(db,...)
>
> rest of the queries based on this table doesn't work. I want to skip
Two new lines in markmin translate into an end of paragraph in html, a
single new line is interpreted as a continuation of the same
paragraph.
On Dec 30, 1:51 am, lyn2py wrote:
> Does MARKMIN have issues with processing newlines?
> Because I can't use formatting here, everything looks like the sa
excellent bug fixing time : 7 minutes.
Thanks.
On Fri, Dec 30, 2011 at 3:26 PM, Paolo Caruccio
wrote:
> fixed in trunk
>
>
> http://code.google.com/p/web2py/source/detail?r=25d5f65ce920ed2c6089097122caa7ded3d63d8a
>
>
On Friday, December 30, 2011 7:26:31 AM UTC-5, Alan Etkin wrote:
>
> I'd create a custom form with new user fields, decorate it with
> @auth.requires_membership(""), and on validation, use the
> auth.get_or_create_user() function passing the collected form data. I
> have not tested it, and maybe
fixed in trunk
http://code.google.com/p/web2py/source/detail?r=25d5f65ce920ed2c6089097122caa7ded3d63d8a
please refer to attachement, I was on firefox 9.0.1
<>
It works if we remove the first parameter (request) in the
ExtendedLoginForm:
auth.settings.login_form = ExtendedLoginForm(auth, other_form,
signals=['token'])
I'd create a custom form with new user fields, decorate it with
@auth.requires_membership(""), and on validation, use the
auth.get_or_create_user() function passing the collected form data. I
have not tested it, and maybe there is a simpler way. I think that
there would be good that web2py had a fe
Another problem with the slices:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
Traceback (most recent call last):
File
"/windows/Users/Thomas/Dropbox/appz/2011/dotcloud_web2py/gluon/restricted.py",
line 204, in restricted
exec ccode in environment
File
"/windows/Users/Thomas/D
Thanks Anthony.
The books seems to be not up-to-date:
TypeError: __init__() got multiple values for keyword argument 'signals'
I will try the slice 124, but it looks old too.
Best Regards,
Thomas
On Thu, Dec 29, 2011 at 11:53 PM, Anthony wrote:
> See "Multiple login forms" at the end of
I am not sure if web2py has a feature for that. You can still redirect
output to a filelike object during controller processing and on exit
return the control to the original handler. That way you could extract
the output from the file object to append it to the web2py response
Pseudo-code:
on co
Hi,
I am new to web2py and I need help... Thanks in advance for your
help.!!
I want to make application which is having one admin(super user)
account.. I want to restrict 'only admin can register user'. So that
once Admin logins to app, he will see different menus like 'Home',
'Setting', and 'Reg
Let us say I have the below code in db.py under models
define_table(db, )
If I change that to,
if settings.migrate:
define_table(db,...)
rest of the queries based on this table doesn't work. I want to skip the
definition altogether if the table is already present. Reason: I assume
that
Thanks Albert, just tried your suggestion, but it didn't create the
newlines "".
Also, because the intended input will be like a forum post (like
bbcode), I doubt I would like MARKMIN to force newlines with spaces
(has to be user-friendly, right?) Unless of course MARKMIN is not
meant for this use
The problem is accessing to file system.
I use Kubuntu 11.10 and WeB2Py 1.99.4 from Debina repository.
After some time I get to my web2py server work from Console
sudo python web2py/web2py.py -a 'password' -i '0.0.0.0' -p '8000'
and my sudo pass
and it is working
I tray to make autostart routine b
I can't test it now, but try to put 4 spaces at the end of the line to
force a newline.
2011/12/30 lyn2py
> Does MARKMIN have issues with processing newlines?
> Because I can't use formatting here, everything looks like the same
> text, but in MARKMIN the formatting is ok, only the newlines is n
41 matches
Mail list logo