A few weeks ago I upgraded to a web2py version that on start up also
included my Mac's IP address 10.0.1.10 in the list of serevr IPs, so every
mac behind my Airport could visit my web2py application at
http://10.0.1.10:8000
In web2py version 2.4.6 this no longer is an option in the list of se
What version are you using Christian?
On 12 Apr 2013 23:34, "Christian Foster Howes" wrote:
> i'm not having any problems with GAE + web2py.though i'm not fully
> upgraded on my web2py versions...perhaps i should do a test upgrade and see
> if i hit the same issues.
>
> On Friday, April 12, 2
Web2py will never be ported to Python 3 (this is a lie, it was ported twice
but it will never be official because it would break our promise of
backward compatibility).
We are working on web3py. It will work on Python 3 and Python 2. It will be
different from web2py but, when on Python 2 it will
That perfect. I'll get it going next week. Thanks for the help with this.
Jim
On Apr 12, 2013 8:57 PM, "Anthony" wrote:
> No, you can't do the ._select(). However, IS_IN_DB takes orderby, groupby,
> and distinct arguments (though not "left", which presumably could be added)
> and uses them in t
No, you can't do the ._select(). However, IS_IN_DB takes orderby, groupby,
and distinct arguments (though not "left", which presumably could be added)
and uses them in the .select() that it does. You don't expect all this
stuff to be documented, do you? We have to have something to talk about on
In the _select() ?
On Apr 12, 2013 8:41 PM, "Anthony" wrote:
> You can specify an orderby for the query.
>
> Anthony
>
> On Friday, April 12, 2013 8:20:38 PM UTC-4, Jim S wrote:
>>
>> So, that should allow me to sort though shouldn't it?
>> On Apr 12, 2013 4:38 PM, "Anthony" wrote:
>>
>>> Well,
You can specify an orderby for the query.
Anthony
On Friday, April 12, 2013 8:20:38 PM UTC-4, Jim S wrote:
>
> So, that should allow me to sort though shouldn't it?
> On Apr 12, 2013 4:38 PM, "Anthony" >
> wrote:
>
>> Well, a change was just made in trunk to allow '%(tablename.fieldname)s'
>> n
http://minikomi.github.io/Bootstrap-Form-Builder/#
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For more options, v
Hi everyone,
I'm new to just about everything in the web2py stack, so I'm struggling
with the best way to approach a problem I'm having.
I have a game written in Flash.
A user clicks a purchase button, which directs Flash to run a Javascript
method.
The Javascript calls a 3rd party purchase A
Hi,
I'm interested (very interested) in a Python web framework that works with
Python 3.x (3.3+, in particular). What is the status of web2py's py3
support? I found a late-2011 thread in this group where Massimo was betting
that there would be a Python 2.8 and hence no pressing need to even care
So, that should allow me to sort though shouldn't it?
On Apr 12, 2013 4:38 PM, "Anthony" wrote:
> Well, a change was just made in trunk to allow '%(tablename.fieldname)s'
> notation, but it looks like the query retains only the fields in the main
> table (db.productSite in this case) anyway, so I
i'm not having any problems with GAE + web2py.though i'm not fully
upgraded on my web2py versions...perhaps i should do a test upgrade and see
if i hit the same issues.
On Friday, April 12, 2013 9:10:10 AM UTC-7, Carl wrote:
>
> Perhaps 2.5 isn't far away given 2.4.6 is out.
>
> I'll be happ
Yes Anthony
On Fri, Apr 12, 2013 at 11:33 AM, Anthony wrote:
> Alan was referring to the placement of the ~ operator -- it prepends the
> Query, not the Set. You probably submitted the following to the grid, right?
>
> SQLFORM.grid(~db.log.severity.belongs((1, 2)), ...)
>
>
> Anthony
>
> On Fri
Not sure there's a way to do a left join, but seems like that could be
enabled. If you can't get what you want, you might consider handling the
queries to generate the items separately, and then pass them to IS_IN_SET.
Anthony
On Friday, April 12, 2013 2:23:37 PM UTC-4, Jim S wrote:
>
> What I
Well, a change was just made in trunk to allow '%(tablename.fieldname)s'
notation, but it looks like the query retains only the fields in the main
table (db.productSite in this case) anyway, so I guess that won't help. So
instead, maybe:
lambda r: db(db.product.productId == r.productId).select(
db.define_table('pais',
Field('nombre', unique=True),
Field('continente', 'string', requires=IS_IN_SET(CONTINENTES)),
Field('es_UE', 'boolean', default=False),
format='%(nombre)s',)
and the controller:
@auth.requires_login()
def sheet():
tablename = request.args[0]
you're not doing the right checks. I posted a reply directly on the issue.
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.
I could do that, but I pass a tuple... I know that an hard parsing since
most of the time trailing comma is just strip out I think... I saw a tuple
in the DAL : https://code.google.com/p/web2py/source/detail?r=6eed7c7e3ab5
So, I thougth it could take a tuple as well...
Your solution seems cleaner
Got word back from pythonanywhere. They tried adding it to the whitelist,
but it still had bugs because there were issues with whatever Python API
was being used (probably on the end of both pythonanywhere and stripe) to
handle https requests, since the pythonanywhere free user account goes
thr
ah, you don't have a typo, you spelled the word right. unfortunately, in
the spec it's spelled wrong!
On Friday, April 12, 2013 4:38:18 AM UTC-7, Domagoj Kovač wrote:
>
> I have a typo :(, request.env.http_referer works.
>
> On Friday, April 12, 2013 1:27:10 PM UTC+2, Domagoj Kovač wrote:
>>
>> H
uhm. I think that this particular case should be retained as it is:
belongs accepts either a list or a set, but not a string, and **should**
fail when you pass to it a string instead of a list.
either way your code should do
possible_items = request.vars.items
if isinstance(possible_items, s
Hey guys,
We have multiple users and a couple of locales in which to enter data. I
wonder what's a good strategy to setup access control in a way that gives
each user control over a specific subset of locales (usually one user
handles one language, but there are exceptions).
What I initially c
What I really want to do is to use a syntax like this for the IS_IN_DB for
the LEFT JOIN.
requires = IS_IN_DB(db((~db.productSite.productSiteId.belongs(
currentItems)) &
(db.productSite.availableAddon==True) &
(db.productSite.siteId==work
requires =
IS_IN_DB(db((~db.productSite.productSiteId.belongs(currentItems)) &
(db.productSite.availableAddon==True) &
(db.productSite.siteId==workorder.siteId) &
(db.product.productId==db.productSite.productId)),
d
It seems that my work around those not work as I expect... :(
Richard
On Fri, Apr 12, 2013 at 1:14 PM, Richard wrote:
> Hello,
>
> I revive this threads :
> https://groups.google.com/forum/?fromgroups=#!topic/web2py/Qk2LJsEU4Lg
>
> And open this one to make sure this one doesn't get lost...
>
>
Hello,
I revive this threads
: https://groups.google.com/forum/?fromgroups=#!topic/web2py/Qk2LJsEU4Lg
And open this one to make sure this one doesn't get lost...
You can see my other posts to get more details, but breifely I fall on DAL
issue I think with .belongs if for example I only pass a
Shoot, should have thought of that.
Will try when I get back to the office.
Jim
On Apr 12, 2013 12:04 PM, "Anthony" wrote:
> It probably should work, but for some reason, the code converts the Row to
> a dict before doing the string formatting, and that breaks for Rows
> involving joins. For n
It probably should work, but for some reason, the code converts the Row to
a dict before doing the string formatting, and that breaks for Rows
involving joins. For now, you can use a lambda instead:
lambda r: r.product.productName
Anthony
On Friday, April 12, 2013 12:38:09 PM UTC-4, Jim S wrot
Seems I can work around this like that :
db(... & (db.table.field.belongs(('item', ''))).select(...)
Richard
On Fri, Apr 12, 2013 at 12:39 PM, Richard Vézina <
ml.richard.vez...@gmail.com> wrote:
> Hello,
>
> I fall on "(1=0)" with this query :
>
> There is these belongs :
>
> db(... & (db.tab
Hello,
I fall on "(1=0)" with this query :
There is these belongs :
db(... & (db.table.field.belongs(('item',))).select(...)
Richard
On Thu, Nov 8, 2012 at 12:29 PM, Cliff Kachinske wrote:
> I've been working around this Postgres/psycopg2 "feature" for ages.
>
> Something like this:
>
> que
Tried that already but got the same error.
Jim
On Apr 12, 2013 11:32 AM, "Anthony" wrote:
> Since you are joining tables, you might need to use the
> "tablename.fieldname" format to refer to the field in question. Does
> '%(product.productName)s' work (assuming "productName" is in the db.produc
Since you are joining tables, you might need to use the
"tablename.fieldname" format to refer to the field in question. Does
'%(product.productName)s' work (assuming "productName" is in the db.product
table)?
Anthony
On Friday, April 12, 2013 11:59:59 AM UTC-4, Jim S wrote:
>
> requires =
Perhaps 2.5 isn't far away given 2.4.6 is out.
I'll be happy to a version of web2py with it removed.
On 12 April 2013 16:17, Massimo Di Pierro wrote:
> I proposed in web2py 2.5 we remove the gql module.
>
>
> On Friday, 12 April 2013 05:21:10 UTC-5, Carl wrote:
>>
>> Removing the line "from glu
requires =
IS_IN_DB(db((~db.productSite.productSiteId.belongs(currentItems)) &
(db.productSite.availableAddon==True) &
(db.productSite.siteId==workorder.siteId) &
(db.product.productId==db.productSite.productId)
you're overreaching. Of course your 2 line fix will be accepted: my point
was more or less "if I were you (handing over the management to my
customer)" I'd go for the safer route of nssm.
If you search in the group you'll see a few issues reported already and
almost one other is still open in t
I agree that perhaps we should remove winservice. I would like to hear more
opinions on the matter form windows users. removing winservice requires
adding some steps (namely downloading and using nssm).
On Friday, 12 April 2013 07:53:24 UTC-5, Niphlod wrote:
>
>
>> However why call nssm the "bes
Thanks! In trunk.
On Thursday, 11 April 2013 10:55:43 UTC-5, Stephen Tanner wrote:
>
> I Think I tracked down the issue.
>
> In the windows service, it just imports the HttpServer class from main,
> and then creates one using the options.py for its settings.
>
> However, when starting a web2py
Will check this asap. Can you post some screenshots?
On Thursday, 11 April 2013 16:58:29 UTC-5, pa...@cancamusa.net wrote:
>
> Hello:
>
> I've written an application for database management with some features
> that might interest you:
>
> - RTable builds a kind of spreadsheet from any table. The
I proposed in web2py 2.5 we remove the gql module.
On Friday, 12 April 2013 05:21:10 UTC-5, Carl wrote:
>
> Removing the line "from gluon.contrib.gql import *" removed the error and
> allows my app to launch.
>
> I next run into this error:
> File "F:\wp\TestEnvoy\web2py\gluon\main.py", line 5
This can change if we backport the MENU helper from web3py.
On Thursday, 11 April 2013 10:11:52 UTC-5, Anthony wrote:
>
>
> ul = menu.element("ul")
>> items = ul.elements("li")
>> for item in items:
>> item.atttributes["_id"] =
>>
>> Won't work -- the MENU() helper doesn't generate the UL's a
Thank you very much Pedro. That works!
I put it in the view, right after {{extend 'layout.html'}} and it works too.
Gracias otra vez, saludos
Jes
El viernes, 12 de abril de 2013 15:19:21 UTC+2, Ricardo Pedroso escribió:
>
> Hi hit this issue also and I fixed with:
>
>
> .gmnoprint img {max
A lot of valid points however as i stated it is only a 2 line fix.
The reason this fix is needed is because of the
On Apr 12, 2013 8:53 AM, "Niphlod" wrote:
>
>> However why call nssm the "best" way to do this but still ship the
>> winservice.py file?
>>
> Because things gets discussed and possi
Alan was referring to the placement of the ~ operator -- it prepends the
Query, not the Set. You probably submitted the following to the grid, right?
SQLFORM.grid(~db.log.severity.belongs((1, 2)), ...)
Anthony
On Friday, April 12, 2013 9:51:38 AM UTC-4, Tito Garrido wrote:
>
> It works here...
@auth.requires_membership() was changed so it only does its query when the
decorated function is actually called. However, you are using the more
generic @auth.requires(), which can take any condition. There's no way to
automatically make the evaluation of that condition lazy, so you are
respon
in a grid either you pass a table or a query, so passing
db(...) won't work. Are you totally sure ?
Alan's syntax is the correct one.
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emai
Anthony,
Thanks so much for sharing the expertise, and so quickly.
I had completely misunderstood about the decorators. Actually stacking them
is the simplest and easiest answer, given that it is a valid thing to do.
I hear what you say about the unnecessary database hits and the lambda. I
had
It works here... at least for a SQLFORM.grid
On Thu, Apr 11, 2013 at 10:26 PM, Alan Etkin wrote:
> Is that the correct syntax?
>
> select() returns a Rows object, and I'm not sure that operation is
> supported, I tried it in a shell and it throws:
>
> TypeError: bad operand type for unary ~: 'R
I placed a clean copy of the latest web2py release and added my application
to it (init) and linkedin library plus a couple of yaml files.
If I run web2py all is fine. But when I run dev_appserver I can the
following error when I try to login using LinkedIn.
The error doesn't look like a valid r
Yes we can pass Paramenters. check this out.
https://github.com/simpleservices/app_report-python/wiki/Using-the-AppReport-client-on-Web2py-Apps
Ovidio Marinho Falcao Neto
Web Developer
ovidio...@gmail.com
83 8826 9088 - Oi
>
> @auth.requires(auth.has_membership('Approver') or
> auth.has_membership('Admin')) #allowing Admin or Approvers to access
The above will execute the has_membership queries every time the controller
is called, even when not accessing the decorated function. To avoid the
unnecessary databa
Hi hit this issue also and I fixed with:
.gmnoprint img {max-width: inherit;}
in the end of the
Ricardo
On Fri, Apr 12, 2013 at 11:47 AM, Jes M wrote:
> Hi all:
>
> I'm testing gmaps.js with the same code Omi published here:
>
> http://ochiba77.blogspot.com.es/2012/06/how-to-use-gmapsjs-on
> How do I know if it's useful for other people, other than asking here?.
> ... Is that more useful than a RTable plugin?
>
The RTable plugin is just a suggestion, it doesn't means you ought to have
one. I tend to make plugins since when you need a new app, you can
integrate different feature
Yes, but Movuca uses a modelless approach, that was nice when lazy
tables wasn't implemented in web2py.
Maybe Bruno Rocha, the Movuca creator, says more about that.
On Thu, Apr 11, 2013 at 10:14 AM, samuel bonilla wrote:
> the largest open source project I've seen in web2py is movuca, you can ch
Hello, I am relatively new to web2py. I think it's terrific, but I am still
learning.
Hopefully I will become expert enough to contribute answers:-)
For now, despite research, I am still unclear on the use of the @auth
decorators, and am seeking advice, please?
I have built an application for mu
>
>
> However why call nssm the "best" way to do this but still ship the
> winservice.py file?
>
Because things gets discussed and possibly overlooked.
There are a few open issues with the way web2py handles services and
absolutely no-one willing to take "responsibility" to test it more than th
The problem is that the last character of the password appears to be a
lowercase l, when in fact it is an uppercase I (which appear the same in
the Google Groups font).
Thanks.
Anthony
On Friday, April 12, 2013 5:30:32 AM UTC-4, pa...@cancamusa.net wrote:
>
> Login is an email, and got obfusca
Interesting.
However why call nssm the "best" way to do this but still ship the
winservice.py file?
If nssm was truly *the* way to do this then I would think the book (which
was just updated) would have removed the section about the winservice.py
and only talk about nssm or at least make an effor
from web2py's standpoint, having someone else (the nssm process) to care
for service integration is more straightforward, i.e. it runs exactly as if
it was launched "normally".
Of course winservice.py can be patched and fixed etc etc etc but either
someone takes care of testing it under every Wi
Forgive my lack of knowledge and experience with nssm but how would it help
in this situation?
On Apr 12, 2013 7:09 AM, "Tim Richardson" wrote:
> possibly another reason to use nssm on windows
>
> --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups
I have a typo :(, request.env.http_referer works.
On Friday, April 12, 2013 1:27:10 PM UTC+2, Domagoj Kovač wrote:
>
> Hi,
>
> i am using request.env.http_referrer, and i always get None, is there
> something i did wrong?
>
--
---
You received this message because you are subscribed to the Go
Hi,
i am using request.env.http_referrer, and i always get None, is there
something i did wrong?
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+u
possibly another reason to use nssm on windows
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For more options, visit
El viernes, 12 de abril de 2013 01:51:33 UTC+2, Alan Etkin escribió:
>
> > RTable builds a kind of spreadsheet from any table. The columns are html
> input for fields of type string or number, selects for
> > references or when the options are limited, and so on.
>
> Unless I'm missing something,
Hi all:
I'm testing gmaps.js with the same code Omi published here:
http://ochiba77.blogspot.com.es/2012/06/how-to-use-gmapsjs-on-web2py.html
But there is a problem when the map is redendered: the slider is broken and
when clicking in a mark the contents of the frame are not well diplayed
too.
Also in my db.py under " if request.env.web2py_runtime_gae: "
I have:
from gluon.contrib.gae_memcache import MemcacheClient
from gluon.contrib.memdb import MEMDB
cache.memcache = MemcacheClient(request)
cache.ram = cache.disk = cache.memcache
session.connect(request, response,
Removing the line "from gluon.contrib.gql import *" removed the error and
allows my app to launch.
I next run into this error:
File "F:\wp\TestEnvoy\web2py\gluon\main.py", line 555, in wsgibase
session._try_store_in_db(request, response)
File "F:\wp\TestEnvoy\web2py\gluon\globals.py", lin
has my db.py content fallen out of date?
it includes:
from gluon.sql import SQLCustomType
if request.env.web2py_runtime_gae: # if running on Google App Engine
from gluon.contrib.gql import *
db = DAL('gae')
On Friday, 12 April 2013 11:00:09 UTC+1, Carl wrote:
>
> actually.. while gettin
actually.. while getting an unknown ticket if I request the url a second
time I get this:
File "F:\wp\TestEnvoy\web2py\applications\init\models\db.py", line 13, in
from gluon.contrib.gql import *
File "F:\wp\TestEnvoy\web2py\gluon\custom_import.py", line 100, in
custom_importer
ret
Login is an email, and got obfuscated.It is tester at the domain
example.com:
tester (a) example.com
El viernes, 12 de abril de 2013 01:17:21 UTC+2, Anthony escribió:
>
> I'm getting an Invalid Login error with the login you provided.
>
> On Thursday, April 11, 2013 5:58:29 PM UTC-4, pa...@cancam
Hi Ovidio,
Thanks for this great resource. I have a few questions - Can we pass
queries to this plugin? Can we select fields that we want for reporting?
The wrapping thing works well with this plugin.
Rahul.
On Thursday, April 11, 2013 4:47:44 PM UTC+5:30, Ovidio Marinho wrote:
>
> PDF
Anthony, you are right! I put fields=[db.owner.name,db.dog.dogname] and
works OK
Thank you !!!
I might be a bug after all...
Tom :)
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emai
71 matches
Mail list logo