It works now. Thanks.
I use the following code to display 'phmap' table.
cols = [ 'phmap.' + c for c in db.phmap.fields()[1:]] # remove the
'id' field and form phmap.F1, phmap.F2,... list
hdrs = dict([(str(c),c.label) for c in db.phmap])
wlist =SQLTABLE(words,
headers = hdrs,
c
unfortunately, I've tried again. it still not work. Or, is there any
open sample code could let me see?
I've add another line in layout.html, but still failed.
controllers/default.py
mytable = SQLTABLE(...)
mytable['_id'] = 'mytable'
views/default/layout.html
-
Hi,
I'm on web2py 1.82 and I'm facing this issue:
I have a custom controller c in which I have these functions and
corresponding views:
c.py
-
@auth.requires_login()
def index():
# index page stuff
def login():
form=auth.login()
return dict(form=form)
db.py
---
if request.controller ==
You are right. It is actually very simple after reading your hints.
Thanks for a great web framework!
On Aug 16, 12:06 pm, mdipierro wrote:
> I think it is much simpler than people assume here. I have seen many
> users not Python experts, comeing from compiled languages, they click
> on [bytecod
On Aug 16, 2010, at 5:25 PM, Yarin wrote:
> @Jonathan- I'd like to see what you've got- keep me updated
The patch is here, if anyone would like to review it.
http://web.me.com/jlundell/filechute/logging.zip
Most of the changes are to use a specific logger instead of making a generic
logging ca
I am having a problem with some customization of the tagging plugin.
I downloaded and installed in a test app and all is well. In my
application I need to manipulate the data tables. More specifically I
need one set of tagging tables (t tables) for each of my partitioned
databases. This require
@Jonathan- I'd like to see what you've got- keep me updated
On Aug 16, 5:03 pm, Jonathan Lundell wrote:
> On Aug 16, 2010, at 1:31 PM, Yarin wrote:
>
>
>
> > I've posted an updated slice with an in-depth treatment of logging in
> > web2py.
> >http://web2pyslices.com/main/slices/take_slice/91
>
>
Hi Mike,
Sounds like an interesting project. We generally stick with GNU but in
some cases incorporate MIT stuff (and the accompanying license) when
it makes sense for our clients.
The biggest deciding factor for us is our target market, but at the
moment we have no clients who seem to be overly
kenneth is correct. You have to edit your /etc/hosts in linux and c:
\windows\system32\drivers\etc\hosts in windows, then add those new
lines,
I usually practive doing like this
127.0.0.1 www.mysite.dev
127.0.0.1 sub.mysite.dev
like using original domain and using .dev as extension.
I also believe
also don't forget, if you will be running on port 8000 you should be
accessing it at
http://davidscommunity.community.com:8000
Also I think it's not supported to use wildcards in linux.
And I usually use the same url except for .com to .dev in my hosts for
most of my dev stuff.
On Aug 16, 5:06 am,
I understand now.
> This action is like "completly remove my account from the website" ==>
> the opposite of "register".
This should be easy to do. I am traveling this week but I can do it
the next. Please remind me.
You have to loop and update them.
On Aug 16, 3:05 pm, Lasiaf wrote:
> How do I add new columns to have default values in GAE for existing
> records?
> When I add new columns, existing records don't get updated with the
> new columns.
could it be a problem with escaping basic auth parameters?
On Aug 16, 2:20 pm, David Marko wrote:
> Cause a lack of time I gave up for the moment. I removed
> authentication requirement from my method and used security token as
> an parameter for my method. Using SSL for encrypted communication
>
On Aug 16, 2010, at 1:06 PM, Michael Wolfe wrote:
> I tried with the query string (?id=1) and I still got &requested_uri=None.
The logic is somewhat more convoluted than I though. request_uri only gets set
if routes_in actually adds a query string to the rewritten URL. This is
apparently becaus
On Aug 16, 2010, at 1:31 PM, Yarin wrote:
>
> I've posted an updated slice with an in-depth treatment of logging in
> web2py.
> http://web2pyslices.com/main/slices/take_slice/91
I've got a patch pending that adds a (standard format) logging configuration
file, and converts all of web2py's loggi
> the problem we have to solve is:
> 1) how to get more people to provide input?
My initial suggestion wa snot about design.
It was about aggregating content related to web2py project activities
> 1) profile removal
>
> unless I misunderstood you can do
>
>auth.settings.actions_disabled.append('profile')
Sorry, there is amisunderstanding:
I would like to provide the user a option to completely remove his entry
(identity) from the application (remove the corresponding entry from the
I've posted an updated slice with an in-depth treatment of logging in
web2py.
http://web2pyslices.com/main/slices/take_slice/91
Based on our earlier discussion
http://groups.google.com/group/web2py/browse_thread/thread/d3b534113a904cd7/4d3f9f10d402210d?lnk=gst&q=logging#4d3f9f10d402210d
The slic
It seems like including both might make it easier to troubleshoot
routes.py errors. It's hard to anticipate which might be more
valuable in error handling, but in debugging at least, more info =
better.
On Mon, Aug 16, 2010 at 3:57 PM, Jonathan Lundell wrote:
> On Aug 16, 2010, at 12:41 PM, Mich
Hello all,
I've been working for the past few months on a group collaboration and
problem solving application and am almost ready to put up a beta
version on GAE for folks to experiment with. Many thanks to Massimo
and all of you regulars here for helping me up the learning curve!
The app is ca
I tried with the query string (?id=1) and I still got &requested_uri=None.
In case I'm doing something non-standard that's contributing to the
problem, here is my routes.py file (with comments and doctests
removed):
routes_in = (
('/admin/$anything', '/admin/$anything'),
('/static/$anything',
How do I add new columns to have default values in GAE for existing
records?
When I add new columns, existing records don't get updated with the
new columns.
beautiful. it worked perfectly. Thank you. Again :-)
On Aug 16, 2:27 pm, mdipierro wrote:
> Here is how I handled in the past.
>
> In a model file:
>
> def bydb(name=None):
> if name: session.db_name=name
> else: name=session.db_name
> commdb=DAL(name)
> commdb.define_t
On Aug 16, 2010, at 12:41 PM, Michael Wolfe wrote:
> I'm not sure anything can be done about it from within web2py (though
> Jonathan could certainly answer that better than I). It appears to be
> a limitation of the rocket web server. It may need to be taken up
> with the development team worki
On Aug 16, 2010, at 11:56 AM, mdipierro wrote:
> This is important and should be fixed. we will look into it. Perhaps
> Jonathan who has worked on routes extensively can look into this.
I'm a little in the dark on routes_onerror; I recall looking at it a while back
when I noticed that its doctes
Massimo,
I'm not sure anything can be done about it from within web2py (though
Jonathan could certainly answer that better than I). It appears to be
a limitation of the rocket web server. It may need to be taken up
with the development team working on Rocket. Of course, if it's a
problem with R
Cause a lack of time I gave up for the moment. I removed
authentication requirement from my method and used security token as
an parameter for my method. Using SSL for encrypted communication
gives me enough security. But things are working fine as tested using
cURL ... will investigate at the end
if you save request.headers somewhere I think it'll be easy to see the
differences
Niphlod
On Aug 16, 11:02 am, David Marko wrote:
> U just downloaded cURL for windows and tried this. And its working ...
> so it not web2py issue but something on my side ... will try to look
> to request beei
This is important and should be fixed. we will look into it. Perhaps
Jonathan who has worked on routes extensively can look into this.
Massimo
On Aug 16, 1:54 pm, mwolfe02 wrote:
> Just tested this in my production environment (apache) and it works as
> expected. I'm having the problem in my de
Just tested this in my production environment (apache) and it works as
expected. I'm having the problem in my dev environment which is
running the built-in rocket server on windows. It looks like the
Rocket server is not providing request_uri as apache with mod_wsgi
does.
If you just output the
Hello David,
When I try and enter a URL like
"http://mycommunity.127.0.0.1:8000/mm_beta_1/default/index"; where mycommunity
is actually a parameter specifying which community
The problem is that the browser does not understand a address like
subdomain.127.0.0.1, you have to fool the opera
It has to be passed. The scope is models, controllers and views.
On Aug 16, 12:52 pm, Yarin wrote:
> What is the scope of the 'request' object? Can it be accessed from
> something like a contrib module, or must it be passed in?
the problem we have to solve is:
1) how to get more people to provide input?
2) can we accept donations for this purpose if people then do not
agree or like with the final work?
I think we need some guidelines before we make a change like this.
Aesthetic changes are hard for people to agree on. An
can you post the model? is this sqlite? did you also change the field
type?
On Aug 16, 11:39 am, Narendran wrote:
> Hello,
> In one of my tables, I want to increase the length of a string field.
> Hence I added a length parameter to the Field. Now, I am getting the
> following error:
>
> Tracebac
1) profile removal
unless I misunderstood you can do
auth.settings.actions_disabled.append('profile')
2) federated authentication.
there is one way you can do it.
a) have multiple apps share the same database for auth and access eah
othe session with
session.connect(request,response,app
give a couple of weeks to do some cleanup. Please remind me if you do
not hear from me.
On Aug 16, 5:40 am, ondrejs wrote:
> I would be really interested in the application as well.
>
> --OS
>
> On 14. Aug, 16:11 h., mdipierro wrote:
>
> > For my class last quarter I made a system like you sugge
Here is how I handled in the past.
In a model file:
def bydb(name=None):
if name: session.db_name=name
else: name=session.db_name
commdb=DAL(name)
commdb.define_table(.)
commdb.define_table(.)
commdb.define_table(.)
return commdb
and use it a
What is the scope of the 'request' object? Can it be accessed from
something like a contrib module, or must it be passed in?
I'm trying to use routes_onerror, but requested_uri keeps coming
through as None (subject of this e-mail is the query string from the
redirect). I searched through the source code and could not find
where this is supposed to be set. I stepped through using WinPDB and
there is simply no entry in r
After testing the isprime function, this code works better for me.
def isprime(n):
'''check if integer n is a prime'''
# make sure n is a positive integer
n = abs(int(n))
# 0 and 1 are not primes
if n < 2:
return False
# 2 is the only even prime number
if n ==
I will also donate
On Aug 16, 5:26 am, Tom Atkins wrote:
> Forgot to say - a good aspect of the charlesproxy site design is the
> documentation - lots of information and subheadings but clean navigation.
> The excellent web2py book is nearly in this structure. If the design /
> foramatting match
Hello,
In one of my tables, I want to increase the length of a string field.
Hence I added a length parameter to the Field. Now, I am getting the
following error:
Traceback (most recent call last): File "/usr/lib/web2py/gluon/
restricted.py", line 178, in restrictedexec ccode in environment
F
Thanks for the example.
I purchased one book a couple of months ago. I don't recall which
version though. I will have to go to Lulu and see if I can get
another copy of the PDF from their site.
On Aug 16, 11:13 am, NetAdmin wrote:
> I actually purchased a Hard-Copy edition of the Web2py Manu
I actually purchased a Hard-Copy edition of the Web2py Manual ( 2nd
edition )
The online book does NOT seem to have page numbers, but look at the
example below.
The Controller myconroller.py contains 1 function called isprime()
mycontroller.py
#
# mycontroller.py can contain multiple functions
Ok cool. Where can I find the 2nd Edition of the Web2Py book?
I only see the 3rd edition online.
On Aug 16, 10:22 am, NetAdmin wrote:
> Look at Chapter 3, Overview ( 2n edition of the manual )
>
> On Aug 16, 8:50 am, David wrote:
>
>
>
> > Where is the part which talks about how controllers wo
Look at Chapter 3, Overview ( 2n edition of the manual )
On Aug 16, 8:50 am, David wrote:
> Where is the part which talks about how controllers work and are used
> in the web2py book?
> I see the DAL and Views but nothing on controllers is obvious here.
>
> Thanks,
> David
Perhaps the use of doctest in documentation may allow somehow to test the
doc
See : http://www.doughellmann.com/PyMOTW/doctest/#External_Documentation
On Mon, Aug 16, 2010 at 15:06, selecta wrote:
> http://web2py.com/book/default/chapter/04?search=local_import
> 1. mymodule = local_impo
Where is the part which talks about how controllers work and are used
in the web2py book?
I see the DAL and Views but nothing on controllers is obvious here.
Thanks,
David
Actually there was some issue with my browser plugin.
It's working on my system too now .
Thanks for your help.
On Aug 15, 6:58 pm, mdipierro wrote:
> I looked the app you sent me. There are two links:
>
> - Play Music
> - Music Player
>
> I can click on either of them and it plays the music for
Forgot to say - a good aspect of the charlesproxy site design is the
documentation - lots of information and subheadings but clean navigation.
The excellent web2py book is nearly in this structure. If the design /
foramatting matched the rest of web2py.com then :-)
On 16 August 2010 13:01, rochac
+1 for charlesproxy design style
Sent from my iPhone
On 16/08/2010, at 08:37, Tom Atkins wrote:
> +1 for a professional redesign of web2py.com - although it is a cosmetic
> thing I think you will be amazed how much more popular web2py will become
> with a stylish professional looking web2py.c
I agree with Tom.
I could apport a bit donation to redesign the main website, also the logo.
Also, silly (and lovely) things like Gnome Love, or the Django Pony, makes
attract new people to know the framework.
On Mon, Aug 16, 2010 at 1:37 PM, Tom Atkins wrote:
> +1 for a professional redesign o
+1 for a professional redesign of web2py.com - although it is a cosmetic
thing I think you will be amazed how much more popular web2py will become
with a stylish professional looking web2py.com. I'm willing to contribute
money towards this if a fund is started.
I know there are many excellent sit
I like some of the ideas. +1 from me
On Aug 15, 1:29 pm, Tim Michelsen wrote:
> Hello,
> I recently checked out two sites created by Lasiaf using Basic
> authetication and Google authentication; I also just checked out the
> default welcome app.
>
> I miss the following features in the authentica
Can you explain how you tested the url mapping in development. I have
a similar architecture and am not sure how to test the url mapping
using localhost.
My Scenario is as follows:
1) A user is email link of "http://mycommunity.mydomain.com.
2) They click on link.
3) The web2Py app requires login
I would be really interested in the application as well.
--OS
On 14. Aug, 16:11 h., mdipierro wrote:
> For my class last quarter I made a system like you suggest although
> with differences. I will cleanup, and post it if there is interest.
>
> The idea was the following:
>
> - The system is bas
Does this resize the browser window or the controls and layout
contained in the window??
On Aug 10, 1:40 pm, "Martin.Mulone" wrote:
> you can do that with jquery.
>
> for example on resize:
>
> jQuery(window).resize(function() {
> win_height = jQuery(window).height();
>
I am working on an application and have encountered an issue I cant
seem to solve. I have an app based on the supplied scaffolding. It
has a "db" variable defined in the model. The db is available to all
the other controlers in the application without any problem.
Additionally, in one of the co
U just downloaded cURL for windows and tried this. And its working ...
so it not web2py issue but something on my side ... will try to look
to request beeing sent.
David
On 16 srp, 10:25, Niphlod wrote:
> I usually use curl and derivatives
>
> in order to help me/us knowing what's going on,
How silly of me... thanks.
On Sun, 2010-08-15 at 06:47 -0700, mdipierro wrote:
> keywords =
> [str(T('Furniture')),str(T('Store')),str(T('')),str(T(''))]
>
> On Aug 15, 6:33 am, Jason Brower wrote:
> > It seems I can't do this.
> > keywords = [T('Furniture'),T('Store'),T(''),T('')]
> > response.
I usually use curl and derivatives
in order to help me/us knowing what's going on, could you please save
somewhere the request object and past here it ?
Thanks :):)
2010/8/16, mdipierro :
> They get updated only when executed.
>
> On 15 Ago, 17:21, Jonathan Lundell wrote:
>> On Aug 15, 2010, at 6:48 AM, mdipierro wrote:
>>
>> > IS_IN_SET(set,[T(x) for x in set])
>>
>> How do the language files get updated for something dynamic like this?
>>
>>
>>
Hello massimo,
do you have any opinion about this?
Suggestions?
Thanks and have a nice week.
> Talking about the layout of the example app?
I was talking of the www.web2py.com site.
64 matches
Mail list logo