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 lyn...@gmail.com
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
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
Thanks Albert, just tried your suggestion, but it didn't create the
newlines br.
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
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
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
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
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 abasta...@gmail.com wrote:
See Multiple login
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
I'd create a custom form with new user fields, decorate it with
@auth.requires_membership(admin group), 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
It works if we remove the first parameter (request) in the
ExtendedLoginForm:
auth.settings.login_form = ExtendedLoginForm(auth, other_form,
signals=['token'])
please refer to attachement, I was on firefox 9.0.1
attachment: display_problm_web2py_wizard.png
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(admin group), and on validation, use the
auth.get_or_create_user() function passing the collected form data. I
have not tested it, and
excellent bug fixing time : 7 minutes.
Thanks.
On Fri, Dec 30, 2011 at 3:26 PM, Paolo Caruccio
paolo.carucci...@gmail.comwrote:
fixed in trunk
http://code.google.com/p/web2py/source/detail?r=25d5f65ce920ed2c6089097122caa7ded3d63d8a
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 lyn...@gmail.com wrote:
Does MARKMIN have issues with processing newlines?
Because I can't use formatting here, everything
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 the
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 already.
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 paolo.ca...@gmail.comwrote:
fixed in trunk
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 fatkhulmusli...@gmail.com
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,
will
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
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 a
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 in
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
Please open a ticket. Indeed this option is missing.
On Dec 30, 12:13 pm, Alexandre Andrade alexandrema...@gmail.com
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
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
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
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'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 liketype
you can download source code from http://www.web2pyslices.com/faq and
test on 1.99.4
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
I will do it thank you.
On Dec 31, 9:15 am, Bruno Rocha rochacbr...@gmail.com 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
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
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?
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
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
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 see, thanks for your help!
Cheers,
Thomas
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
Perhaps these links will help:
http://groups.google.com/group/google-appengine/browse_thread/thread/21478bd9185dcc32/f61b532da5c46588?lnk=gstq=index+reads#f61b532da5c46588
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).
41 matches
Mail list logo