interesting feature ..
thanks
On Monday, 19 August 2013 19:07:02 UTC+5, Anthony wrote:
>
> On Sunday, August 18, 2013 12:52:10 AM UTC-7, at wrote:
>
>> Thank you Niphlod.
>>
>> If connection string is same, can we generate .table files in one server
>> and then use them in other server?
>>
>
> A
Good point. Please open a ticket about this.
On Tuesday, 20 August 2013 01:00:02 UTC-5, HittingSmoke wrote:
>
> Long ago web2py used to provide which python version it was running on in
> the admin interface.
>
> Now all I see is (Running on %s) in the admin console under the web2py
> version.
>
Yes you can do either. I do the former without problems. The only problem I
had is that occasionally one instance run out of memory. Probably this is
because I am not sure how to properly configure static files and some large
files (for example web2py_win.zip) was served by web2py and not by the
Long ago web2py used to provide which python version it was running on in
the admin interface.
Now all I see is (Running on %s) in the admin console under the web2py
version.
How can I fix this to see which python version web2py is using?
--
---
You received this message because you are sub
On Monday, August 19, 2013 10:11:17 PM UTC-7, Fabiano wrote:
> Almost ;)
>
> @auth.requires(auth.has_membership('Administrator') or auth.has_membership
> ('Manager'))
>
Better to put the condition in a lambda so it only gets evaluated when the
decorated function is called rather than every time
Almost ;)
@auth.requires(auth.has_membership('Administrator') or auth.has_membership(
'Manager'))
http://www.web2py.com/books/default/chapter/29/09/access-control#Combining-requirements
Fabiano.
On Monday, August 19, 2013 10:23:21 PM UTC-3, lucas wrote:
>
> i am aware of:
>
> @auth.requires_me
It would appear that there's a slight error or two in Chapter 7 in section
7.2.3
In the controller the book has:
def display_form():
record = db.person(request.args(0)) or redirect(URL('index'))
form = SQLFORM(db.person, record, deletable=True,
upload=URL('download'))
Just got back to looking at this and though the ticket is closed with a
status of FIXED, it doesn't display the sorter icon when you first display
the .grid. Also, line 2212 of sqlhtml.py has a print statement that is
putting messages to my console.
-Jim
On Monday, August 12, 2013 10:01:45 AM
i am aware of:
@auth.requires_membership('Administrator')
def users():
etc
however, can we allow for multiple or's, like
@auth.requires_membership('Administrator')
or @auth.requires_membership('Manager')
which, of course, is pseudocode cuz i don't really know the syntax. or
perhaps in a se
Thank you Massimo,
but how can it be resolved when the format attribute must represent fields
in the database with special chars?. I mean, the hardcoded euro char is the
minor problem here.
Thanks
El jueves, 15 de agosto de 2013 04:07:53 UTC-5, Massimo Di Pierro escribió:
>
> replace
> form
>
> Hi,
>
> I am trying to make use of auth.wiki() but I am finding that to even a
> view a wiki page I have to be logged in. I want visitors to be able to view
> the wiki pages without having to first register an account.
>
>
Are you using the default settings? AFAIK, wikis are public by defaul
Hi,
I'm trying to make div's in a view sortable. I initially tried
jQuery('div *').sortable()
..with no luck, and then tried the code below, using up and down buttons.
They work to move the content in the divs up or down, but clicking them
also causes form submission and page reload. I'm sur
Hi,
I am trying to make use of auth.wiki() but I am finding that to even a view
a wiki page I have to be logged in. I want visitors to be able to view the
wiki pages without having to first register an account.
How do I do this?
Thanks
Simon
--
---
You received this message because you are
it would be the first time we ship a zip archive of a module...
a) do we want to update a zip from a module with 118 files?
b) do we want to maintain our own packaging system for this library in
contrib ?
On Monday, August 19, 2013 3:20:04 AM UTC+2, Jonathan Lundell wrote:
>
>
> There's always z
For users who host on pythonanywhere, I have a question about web2py custom
domain setup :
With a paying account, can I have one webapp with two applications inside, and
have two domains pointing on each application?
For example :
WebApp
|_ MyApp1 (www.myapp1.com)
|_ MyApp2 (www.myapp2.com)
On Sunday, August 18, 2013 10:21:51 PM UTC-7, Joe Barnhart wrote:
> Ah. That explains one mystery. I knew about setting the formname in the
> SQLFORM call, but I had not noticed I needed to pass it in the "validate"
> method as well.
>
SQLFORM.__init__ does not take a "formname" argument (you
On Sunday, August 18, 2013 12:52:10 AM UTC-7, at wrote:
> Thank you Niphlod.
>
> If connection string is same, can we generate .table files in one server
> and then use them in other server?
>
Also, note that you do not have to stick with the default *.table file
names -- in each db.define_tabl
auth.settings.login_next = URL('index')
auth.settings.logout_next = URL('index')
auth.settings.profile_next = URL('index')
auth.settings.register_next = URL('user', args='login')
auth.settings.retrieve_username_next = URL('index')
auth.settings.retrieve_password_next = URL('index')
auth.settings.ch
... I am writing a book about Numerical Algorithms in Python. It is almost
done. If you are interested in the subject and are interested in the area,
please email me. I will be happy them to share them in exchange of some
feedback.
Massimo
--
---
You received this message because you are su
I hope to post an example very soon.
On Sunday, 18 August 2013 21:21:57 UTC-5, Elliott Chaves wrote:
>
> Hi,
>
> i having a problem to add itens to a shopping cart. To be more precise, i
> don't know how to do that. I thinking in how to connect a call from view to
> a determined function in cont
web2py does this automatically for some fields (integer, float, decimal).
It prevents you from typing invalid chars and also validates serverside for
security. It very easy to add other types of client-size typing
restrictions by using the examples. For example for integer:
jQuery(document).on(
In my situation, I'm offering two completely different services to my two
types of users: one is getting budgeting software and the other is getting
advertising options. So in my case, I have decided that it makes sense to
have two separate applications placed under two separate URLs. However, I
ha
issue opened: http://code.google.com/p/web2py/issues/detail?id=1637
the book is telling that primarykey is for legacy databases and what i
understood is that it's mostly preferred to use a combination of
IS_NOT_IN_DB than using primarykey
what i am trying to achieve is here:
http://ondras.zarov
I was referring to google app engine...
The book hasn't been very helpful
On Friday, August 16, 2013 6:05:41 PM UTC-4, Massimo Di Pierro wrote:
>
> It all depends on how you run web2py. If you run it with web2py.py thank
> you can pass a command line option to enable cron and then you need a
> a
OR, for that matter, can i place a banner image at the very top and float
the menu, with all of its expanding and contracting, just under the banner?
lucas
On Monday, August 19, 2013 7:14:20 AM UTC-4, lucas wrote:
>
> can someone please explain to me how this collapsing menu works in the
> css
can someone please explain to me how this collapsing menu works in the
css's. i notice it depends on the width of the window. if it is narrow,
it allows for a single line but it can expand or collapse to show its
detail contents. when it is wide, it can show its primary items to the
right of
>
> Alan, you you have a simple example app, that just goes through the basics.
>
The plugin will probably fail with new versions of web2py because of some
recent changes to DAL. The plugin is still unstable because it depends on
an experimental feature which needs fixes
(http://code.google.co
Hi,
I have a table which just stores images and their names from user
through upload field. [ mytable(image,name) ]
Which are stored by default in uploads folder and which can be
accessed by default download action.
Now my question is that If I manually put some image
Hi,
I have a table which just stores images and their names from user
through upload field. [ mytable(image,name) ]
Which are stored by default in uploads folder and which can be
accessed by default download action.
Now my question is that If I manually put som
I have a table which just stores images and their names from user
through upload field. [ mytable(image,name) ]
Which are stored by default in uploads folder and which can be
accessed by default download action.
Now my question is that If I manually put some images
Hi,
i having a problem to add itens to a shopping cart. To be more precise, i
don't know how to do that. I thinking in how to connect a call from view to
a determined function in controller.
Any advices?
Att.,
--
---
You received this message because you are subscribed to the Google Groups
Hello. I'm just starting to dig into web2py. One thing I really want
is field input masks ala Visual Foxpro, to prevent users from entering
invalid characters rather than validating afterwards and telling them
they made a mistake.
For example, if a user types alpha characters into a numeric-
Hi Andrew,
thank you for sharing. I just tried your template and successfully
installed the master (latest development snapshot of web2py). But since I
want to use the latest stable version I deleted everything (local and
remote installation) again and started again:
rhc app create -a web2py -
I am still getting allot of the same problems but now in 2013. When working
on localhost and pushing to pythonanywhere, then I get these MYSQL index
errors with 150 message.
The way to solve it has been to add fake_migrate_all=True to the DAL
connection, but then I can not do any database chan
the bottomline is:
- .table files are just needed for migrations.
- If you have migrate_enabled=False or migrate=False on all tables (auth
too), web2py is instructed to trust your models to be in sync with the
database, so no .table files are neither created nor required.
- if you don't have .ta
Both are excellent frameworks and I have nothing but praise for both Django
and web2py. You need to try a small project in each and determine for
yourself which fits your needs better. There are so many similarities and
differences that it's impossible to declare one "winner" and "loser". Som
Hi Simone,
Thanks for your reply. I did read the part on custom forms, and tried
{{=form.custom.widget.delete}}
but it should be {{=form.custom.delete}} without the .widget :-(
Best regards,
Annet
--
---
You received this message because you are subscribed to the Google Groups
"web2py-use
37 matches
Mail list logo