For me I need a payed subscription service and a simple payment button that
after payment lets the user download a file (the file they purchased)
The subscription would give users access to the site so people could sell
there digital goods (via) the simple payment button :D
Anyway *cheers
On
If you just do this it should do what you ask:
db.define_table('target',
Field('name', required=True),
Field('address', required=True),
Field('comment', default=''), format='%(name)s')
db.define_table('pac',
Field('name', required=True),
Field('comment', default=''),
Field
Hi,
I have a problem with displaying a table id as a dropdown list in a
form. Database looks like that:
db.define_table('target',
Field('name', required=True),
Field('address', required=True),
Field('comment', default=''), format='%(name)s')
db.define_table('pac',
Field('name', r
Pint the generated SQL
print db(db.donation.id>0)._select(sum)
try execute the same command from pgsql shell. What do you get?
Massimo
On Nov 25, 7:41 pm, Bruno Rocha wrote:
> Hi,
>
> I was using sum() to calculate the amount of donations received in
> (http://natalanimal.com.br/init/default
True. This is a counterindication.
On Nov 25, 7:14 pm, Phyo Arkar wrote:
> Most of them time i use a Remote VPN to change my IP and to access
> Unrestricted Internet.
> Coz internet here is very restrictive, (so restrictive that even google
> Blogger is banned lol) .
>
> And only about 5 outgoing
Which features do people need?
simple payment button?
submission of shopping chart?
digital content?
handling for tax computations and shipping costs?
receive paypal notification (like the user has canceled a payment)?
Some things are easier than others. Some things may require a tight
integratio
I like this. I will give some thought to it and this should be
probably be made the default web2py behavior. Any objection?
On Nov 25, 4:49 pm, Josh Jaques wrote:
> Hey guys,
>
> I looked into this a little more.
>
> The problem seems to be that self.custom.begin and self.custom.end are
> comput
yes. Make a custom auth_user table with an extra 'language' field and
then do
if auth.user: T.set_current_language(auth.user.language)
On Nov 25, 12:06 pm, Carlos wrote:
> Thanks Massimo.
>
> Btw is it possible to update the language files via web apps with
> authorization (e.g. userA can only u
No, PIL just deals with image files.
2010/11/26 Phyo Arkar
> Does it work for many kind of video files like ffmpeg?
>
>
> On Fri, Nov 26, 2010 at 8:34 AM, Bruno Rocha wrote:
>
>> Make thumbs with PIL
>> http://www.web2pyslices.com/main/slices/take_slice/62
>>
>> (I did not test yet, I am going t
PIL is for images only afaik
On Fri, Nov 26, 2010 at 8:47 AM, Phyo Arkar wrote:
> Does it work for many kind of video files like ffmpeg?
>
>
> On Fri, Nov 26, 2010 at 8:34 AM, Bruno Rocha wrote:
>
>> Make thumbs with PIL
>> http://www.web2pyslices.com/main/slices/take_slice/62
>>
>> (I did not te
Does it work for many kind of video files like ffmpeg?
On Fri, Nov 26, 2010 at 8:34 AM, Bruno Rocha wrote:
> Make thumbs with PIL http://www.web2pyslices.com/main/slices/take_slice/62
>
> (I did not test yet, I am going to do that tomorrow)
>
> 2010/11/25 Carlos
>
> Hi,
>>
>> For my project, I
Make thumbs with PIL http://www.web2pyslices.com/main/slices/take_slice/62
(I did not test yet, I am going to do that tomorrow)
2010/11/25 Carlos
> Hi,
>
> For my project, I will need to create a library of images and videos.
>
> What considerations should I have?.
>
> For reference ...
>
> How
How to automatically create a thumbnail for every image?.
ffmpeg
ffmpeg -itsoffset -4 -i test.avi -vcodec mjpeg -vframes 1 -an -f
rawvideo -s 320x240 test.jpg
On Fri, Nov 26, 2010 at 6:13 AM, Carlos wrote:
> How to automatically create a thumbnail for every image?.
Hi,
I was using sum() to calculate the amount of donations received in (
http://natalanimal.com.br/init/default/extrato), but I've found a limit
problem, I don't know if it is a PostgreSQL limit or sum() expression limit.
*
*
*#FIRST WAY, USING SUM()*
In my model I have a field "db.donation.t
My country (Burma) ISP alos changes outgoing IP regularly. it have about 5
ips for me.
On Fri, Nov 26, 2010 at 3:19 AM, Niphlod wrote:
> still there are no counter-indication
> a session sticks to one single ip.
> users of LAN (me and my brother) "hidden" by NAT, users of large WANs
> like F
Even mac address can be captured by a java applet. Self signed java applet
can do the trick. It can raised to User's security level , and can run
system commands if he is Administrator level or root.
On Thu, Nov 25, 2010 at 11:05 PM, mdipierro wrote:
> web2py cannot access the MAC address of the
stealing cookie do not need to sniff session at all. Just a good ole XSS
will work.
On Fri, Nov 26, 2010 at 3:53 AM, guruyaya wrote:
> If I can sniff the traffic, I must have access to the router that
Most of them time i use a Remote VPN to change my IP and to access
Unrestricted Internet.
Coz internet here is very restrictive, (so restrictive that even google
Blogger is banned lol) .
And only about 5 outgoing ips thats goes out of this country.
VPN sometimes loose connection and drops me back
hey thats good thinking.. To be honest I thought initially to have a vote
for this project and make a donation to the developer to create it...
PayPal module for web2py I mean
Wonder if its to late to do something like that
basically my idea was people would commit to paying x amount if the
devel
I will pay another $200 US if someone develops a PayPal plugin/module
for web2py that doesn't have to be described by the words
"Experimental" or "Needs work."
On Nov 25, 1:03 pm, Bruno Rocha wrote:
> I am implementing PayPal for a animal charity project (natalanimal.com.br),
> now this project i
Hi,
For my project, I will need to create a library of images and videos.
What considerations should I have?.
For reference ...
How to automatically create a thumbnail for every image?.
Is there support for image/video galleries or albums?.
With respect to videos, should I let users upload vi
Hey guys,
I looked into this a little more.
The problem seems to be that self.custom.begin and self.custom.end are computed
as soon as the form is initialized, and the hidden fields get appended to
self.custom.end only in the call to accepts.
For this same reason, I was also having problems se
@michele
yeap, IP-based security sucks.
On Thu, Nov 25, 2010 at 10:22 PM, Andrew Evans wrote:
> Branko do you mean is it usable on my site for setting up I see no
> reason why not :D
Both. I might need it one day. :) Tell us how it went if you go with
the library.
--
Branko Vukelić
bg.bra...@gmail.com
stu...@brankovukelic.com
I think you missed on this paticular scenerio.
If I can sniff the traffic, I must have access to the router that
holds the data. That means, I'm on a place in the routing table, that
gets this packet, and that means I can make my IP be the same as the
user in the far end of the communication. So, i
Hey ty Bruno
my project isn't quite ready to use paypal yet anyway, getting closer
though.. let me know your success
*cheers
Branko do you mean is it usable on my site for setting up I see no
reason why not :D
Thanks for the replies
Is this usable?
http://code.google.com/p/pypaypal/
On Thu, Nov 25, 2010 at 8:03 PM, Bruno Rocha wrote:
> I am implementing PayPal for a animal charity project (natalanimal.com.br),
> now this project is receiving donations by PagSeguro (the bigger pay gateway
> of Brazil), but we started to rece
So security is fake in large NATted networks?
2010/11/25 Niphlod :
> still there are no counter-indication
> a session sticks to one single ip.
> users of LAN (me and my brother) "hidden" by NAT, users of large WANs
> like Fastweb in Italy (and quite everyone in China, I believe) show
> the
still there are no counter-indication
a session sticks to one single ip.
users of LAN (me and my brother) "hidden" by NAT, users of large WANs
like Fastweb in Italy (and quite everyone in China, I believe) show
themself to the webserver with the same IP address in the same
session.
As long as w
Hi,
We have change the Group name to include all the "francophonie" (fr-
fr, fr-ca, ...)
The new name is web2py-fr and the link is :
http://groups.google.com/group/web2py-fr
Regards,
Lannick
On 16 nov, 23:07, mart wrote:
> Salut Lannick!
>
> We have language differences? just kidding ;)
>
> S
thanks guys for all the info. I'm finding the video from Google I/O
2010 to be quite informative: http://www.youtube.com/watch?v=4XBqdu8dYE8
@Johann
you missed this in the book
"Note that currently this is only available for DB2, MS-SQL, Ingres
and Informix, but others can be easily added."
but even if Postgres was supported you still could not reference
regular tables from keyed ones and viceversa, as specified in
http://groups.googl
I am implementing PayPal for a animal charity project (natalanimal.com.br),
now this project is receiving donations by PagSeguro (the bigger pay gateway
of Brazil), but we started to receive international donations, so I am
working on PayPal integrations right now.
If I got success on integration,
Thanks Massimo.
Btw is it possible to update the language files via web apps with
authorization (e.g. userA can only update english, userB only spanish,
and so on)?.
Carlos
On Nov 25, 11:33 am, mdipierro wrote:
> This is a good idea. All you need to do is:
>
> T.current_languages=[]
>
> in
This is a good idea. All you need to do is:
T.current_languages=[]
in this way even english will require translation.
Massimo
On Nov 25, 11:30 am, Carlos wrote:
> Hi,
>
> Please let me know if the following makes sense:
>
> I want to implement internationalization using always keys (codes) for
Hello,
I am in the process of developing a Facebook IFrame app using Web2Py.
If there is someone who's done this before, I'd like to get some
guidance regarding,
1. What is better to do? Login using Javascript, or using Web2py
auth?
2. Any other things to consider/look at specific to FB + Web2Py?
Hi,
Please let me know if the following makes sense:
I want to implement internationalization using always keys (codes) for
all T() occurrences, instead of using strings corresponding to one
specific default language.
I believe this is necessary (please correct me if I'm wrong) in the
following
good points. Could you elaborate on what you'd expect from
> 2) join expressions aren't automatically created based on the DAL definition
Massimo
On Nov 25, 9:48 am, Mirek Zvolský wrote:
> I think in relational databases (=in standard database world) foreign
> key always should point to the pri
Hello just wondering if there is anyone out there willing to help out with
Paypal integration in a new system I am building. Its a subscription based
service that allows (should allow) users to sell digital goods by paypal.
The subscription part will also be handled by paypal :D
If some one is wi
if imported from a module as such it dont use
the native libraries (DAL, SQLFORM, etc ) and
framework would be disadvantage.
which is the best way to work with MongoDB??
Thanks for the answer
@massimo
this sounds good, although stealing creditentials/intercepting
communication is most probable in the networks hidden over NAT - hence
in this case it will not work.
--
Kuba
If you have a router, then your machine's MAC address will go no
further than that. Your router's MAC address will show up in packets
sent further upstream, until that too is replaced by the MAC address
of the next device - likely either your modem or your ISP's router.
So your MAC address doesn't
1) install plugin_wiki
2) in the view that needs it:
jQuery(document).ready(function()
{
jQuery('textarea').css('width','700px').css('height','400px').markItUp(mySettings);
});
On Nov 25, 10:24 am, Albert Abril wrote:
> Hi, there's a quick way of include the markItUp editor in your vi
Not for T(variable) since variable is only defined at runtime.
On Nov 25, 10:24 am, Carlos wrote:
> Hi Massimo,
>
> Thanks, it now works ok with T.force.
>
> Is there a way to automatically update multiple language files at once
> with all these lazy T's?.
>
> Carlos
>
> On Nov 25, 10:00 am, m
web2py cannot access the MAC address of the requester. The web server
does not provide the information. The web server may not have the
information itself, depending on the OS. capturing the ethernet header
requires more privileges that the web server has.
On Nov 25, 10:21 am, Richard Vézina
wrot
Hi Massimo,
Thanks, it now works ok with T.force.
Is there a way to automatically update multiple language files at once
with all these lazy T's?.
Carlos
On Nov 25, 10:00 am, mdipierro wrote:
> Update all languages will not catch this because this can only be
> caught at run-time. The stri
Hi,
is there any way to render a template that is a LaTeX document? I have
tryed but getting a parse error if the parser finds something like:
\setkomavar{fromname}{{{=data.get('from_name')}}}
So I guess, web2py can't handle three curly brackets in a template. Is
there any way to avoid this?
T
Hi, there's a quick way of include the markItUp editor in your view to edit
a text Field?
I'm reading about plugin_wiki widgets, but can't guess if markItUp is a
widget or not.
What about the MAC address?
In intranet a user can bump a other user IP easily
Consider this under windows :
http://www.wikihow.com/Change-your-IP-Address-%28Windows%29
Not sure you can pick particular IP.
With a VM under Linux you can pick the IP you want... It will conflict on
the network but
Perfect! Thanks Mr Freeze.
On Nov 25, 10:18 am, "mr.freeze" wrote:
> It seems to be working. I open one in IE and another in Firefox about
> 2 seconds later. After the IE page loads, the Firefox page loads about
> 2 seconds later. Is that what you're looking for?
>
> On Nov 25, 10:09 am, mdipierr
Fixed in trunk. Please try it.
Massimo
On Nov 25, 3:11 am, toan75 wrote:
> Hi,
>
> In Version 1.89.5, I had this error when put many files in to static/
> plugin_xxx folder:
>
> File E:\web2py-XDCB\applications\admin\views\default\plugin.html in
> at line 212
> IndexError: list index out of ran
It seems to be working. I open one in IE and another in Firefox about
2 seconds later. After the IE page loads, the Firefox page loads about
2 seconds later. Is that what you're looking for?
On Nov 25, 10:09 am, mdipierro wrote:
> At least we know it is being executed. :-)
> I think I fixed this
Use this:
from gluon.template import render
def action():
return render('/full/path/to/
template.tex',context=dict(form_name='abc'),delimiters = ('<%','%>'))
and use
\setkomavar{fromname}{<%=data.get('from_name')%>}
Mind that you will not be able to use {{export}} and {{import}}.
On Nov 25
At least we know it is being executed. :-)
I think I fixed this one. Please try again.
Massimo
On Nov 25, 9:53 am, "mr.freeze" wrote:
> Traceback (most recent call last):
> File "C:\eclipse\plugins
> \org.python.pydev.debug_1.6.3.2010100513\pysrc\pydevd.py", line 1145,
> in
> debugger.run
Consider this scenario...
You use http to login and somebody intercept the communication, steals
the cookie and logins using your credentials.
This is no more possible. Now web2py check that the IP of the client
is the same as the IP of the client that started the session. If the
cookie is stolen
Please check trunk again. Is it fixed?
On Nov 25, 9:05 am, Ishbir wrote:
> Did you check out the bug Massimo?
Update all languages will not catch this because this can only be
caught at run-time. The string should be added in the language file
when you run the action (and the browser set to the language needing
translation).
try again, check the language file timestamp. If the file is not being
updated, m
IS_IN_DB(db, 'lesson.id', lambda r: r['name'].upper())
this may work.
On Nov 25, 9:11 am, Mirek Zvolský wrote:
> I'm sorry that I repeat my question, but I still cannot find solution.
>
> Following works:
> IS_IN_DB(db, 'lesson.id', '%(name)s')
>
> And now I need an expression in 3-rd parameter
Massimo adviced me to use something like this previsously:
def make_connection():
from pymongo import Connection
connection = Connection('localhost', 27017)
return connection
connection = cache.ram('mongodb',make_connection,None)
It seemed to work but I had no opportunity to test it u
Traceback (most recent call last):
File "C:\eclipse\plugins
\org.python.pydev.debug_1.6.3.2010100513\pysrc\pydevd.py", line 1145,
in
debugger.run(setup['file'], None, None)
File "C:\eclipse\plugins
\org.python.pydev.debug_1.6.3.2010100513\pysrc\pydevd.py", line 916,
in run
execfile(fil
also, response._caller can be useful to raise the disconnection
2010/11/25 Bruno Rocha
> from pymongo import Connection
> ...
> ...
> connection = Connection()
> ...
> ...
> ...
> ...
> connection.disconnect()
>
> In some controllers I tried to keep connection in session or cache, but it
> fails
from pymongo import Connection
...
...
connection = Connection()
...
...
...
...
connection.disconnect()
In some controllers I tried to keep connection in session or cache, but it
fails.
2010/11/25 David Marko
> Where do you store the Pymongo connection object between requests? In
> some cache
Hi,
I am trying to make internationalization work with variables, in my
local environment on Win7, with web2py 1.89.1.
For reference I have the following test controller:
def xyz():
x = 'xyz'
return T(x)
But after calling that method, when I look at any of the language
files, the string
I think in relational databases (=in standard database world) foreign
key always should point to the primary key.
Maybe PostgreSQL allows such something, maybe PostgreSQL (or other
database) allows a construction of primary key from more as one
fields, and so on, but I think it is not good idea to
Hi Massimo,
Here is the error I got this time:
C:\Users\Andre\Documents\web2py>web2py
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2010
Version 1.89.5 (2010-11-21 16:03:13)
Database drivers available: SQLite3, PostgreSQL
Starting hardcron...
Traceback (most recent
For postgres you need also to specify the sequence name :
sequence_name='tablename_newidname_seq'
On Thu, Nov 25, 2010 at 10:47 AM, Richard Vézina <
ml.richard.vez...@gmail.com> wrote:
> Do you mean that you have a recursive sql request?
>
> Or you want to rename the default id field name for PK
Do you mean that you have a recursive sql request?
Or you want to rename the default id field name for PK?
In the second case :
Field('ouid','id')
does the tricks...
Richard
On Thu, Nov 25, 2010 at 9:16 AM, Johann Spies wrote:
> I want to use a foreign key which does not refer to the id-fiel
I just point out the doc I think could help you... I have not work with
multiple PK and FK.
There is also UUID, but not sure it serve for your needs
Richard
On Thu, Nov 25, 2010 at 9:51 AM, Johann Spies wrote:
> Hallo Richard,
>
>
> On 25 November 2010 16:26, Richard Vézina wrote:
>
>> I think
Many. if a session is called 01234567890abcdefgxyz it will be in a
subfolder yx/ but it is customizable. Instead of True you can pass a
function that build the name of the subfolder from the session name.
On Nov 25, 9:03 am, Vinicius Assef wrote:
> On Thu, Nov 25, 2010 at 6:03 AM, mdipierro wrot
can you please try again.
On Nov 24, 11:04 pm, Anthony wrote:
> Is the test supposed to be done without the win32 extensions installed
> (I have them installed)?
>
> Anyway, I tried the test. Before updating trunk, it behaves as you say
> -- I opened two windows in quick succession -- the first t
I do not understand what you want to do.
On Nov 25, 7:13 am, leone wrote:
> Thanks for suggest, but I need something redirect(URL(..),
> _target='new').
> I fear that it doesn't exists, though web2py does anything.
>
> On Nov 24, 11:19 pm, mdipierro wrote:
>
> > or
>
> > click me
>
> > On Nov 24
Where do you store the Pymongo connection object between requests? In
some cache object?
David
On 25 lis, 16:16, Bruno Rocha wrote:
> I am using PyMongo for one
> projecthttp://api.mongodb.org/python/1.9%2B/index.html
>
> I put the libs in modules and created some methods in my /models to abstr
You cannot "import" web2py models and controllers. Because they can
only be executed in the web2py environment. They use keywords
(request, response, etc.) that are not defined on import.
On Nov 25, 5:22 am, selecta wrote:
> but i do not want to run this code in the shell but in a controller
>
>
The format can be a function that takes a record and return a string.
You can use lambda.
On Nov 25, 4:06 am, Mirek Zvolský wrote:
> Hi Annet,
> thank you very much for your help.
> I have used notes from your log and all works excellent.
>
> However at this time I need to do such translation in
Because you do not have the freedom to name files in upload folder any
way you like. web2py must name those files. replace your function with
this:
@service.xmlrpc
def checkflow(file,name):
import cStringIO
db.image.insert(file=db.image.file.store(cStringIO.StringIO(file.data),name))
ret
I am using PyMongo for one project
http://api.mongodb.org/python/1.9%2B/index.html
I put the libs in modules and created some methods in my /models to abstract
commom tasks, PyMongo is very simple, so it is easy to access the data
directly form controllers or views using its API.
2010/11/25 Aurig
I'm sorry that I repeat my question, but I still cannot find solution.
Following works:
IS_IN_DB(db, 'lesson.id', '%(name)s')
And now I need an expression in 3-rd parameter instead of simple field
name, something like:
IS_IN_DB(db, 'lesson.id', '%(name.upper())s')
to see all names in Uppercase. T
Did you check out the bug Massimo?
On Thu, Nov 25, 2010 at 6:03 AM, mdipierro wrote:
> here is a new feature in trunk...
>
> session.connect(request,response,separate=True)
>
> it creates a subfolder structure of the applications/app/sessions/
> folder to deal with the case very many session.
Massimo what is the desired behaviour?
In my projects I'm using MongoDB
I need to work with this tool
you need this to work with web2py? Make controller for this
RDBMS or or this tool work wiht this
Hallo Richard,
On 25 November 2010 16:26, Richard Vézina wrote:
> I think it cover in as keyed table in the book
>
> I am not sure how that will solve my problem.
It creates new problems:
signature = db.Table(db, 'signature',
Field('created_on', 'datetime', default=reque
I think it cover in as keyed table in the book
Richard
On Thu, Nov 25, 2010 at 9:16 AM, Johann Spies wrote:
> I want to use a foreign key which does not refer to the id-field of another
> record
>
> eg.
>
>
>
> db.define_table('journal',
> Field('ouid','integer'),
>
I want to use a foreign key which does not refer to the id-field of another
record
eg.
db.define_table('journal',
Field('ouid','integer'),
Field('journal',unique=True),
Field('issn', length=10),
Field('notes', type='text'),
Can you install Mark Hammond win32 extension for test?
http://starship.python.net/crew/mhammond/
2010/11/25 Marcos Vinhal
> S.O? -> windows vista
> web2py version? -> 1.89.5
> web2py distribution [.exe,.app,_src] ? -> exe
> Python version? -> 2.5
>
> 2010/11/24 Bruno Rocha
>
> Please include
S.O? -> windows vista
web2py version? -> 1.89.5
web2py distribution [.exe,.app,_src] ? -> exe
Python version? -> 2.5
2010/11/24 Bruno Rocha
> Please include more information about your environment.
>
> S.O?
> web2py version?
> web2py distribution [.exe,.app,_src] ?
> Python version?
>
>
>
> 20
I am running the file web2py.exe
2010/11/24 mdipierro
> How are you starting web2py?
>
> On Nov 24, 5:47 pm, Marcos Vinhal wrote:
> > Every time I try to start the server web2py shows the message below:
> >
> > ---
> > web2py start server
> > ---
You right,
[?]
I probably find it when reviewing my code...
Thanks anyway... There is eyes that are watching here!
Richard
On Wed, Nov 24, 2010 at 9:00 PM, villas wrote:
> Regarding your code...
>
>if request.args(0) == 'login':
>return dict(form=form,layout='login_layout.html')
+1
Thanks for suggest, but I need something redirect(URL(..),
_target='new').
I fear that it doesn't exists, though web2py does anything.
On Nov 24, 11:19 pm, mdipierro wrote:
> or
>
> click me
>
> On Nov 24, 2:47 pm, Michele Comitini
> wrote:
>
>
>
>
>
>
>
> > do you mean like this?
>
> > {{=A('cl
Hi Branko,
Yes, I'm sure you are probably right and I am not an expert with
this. We have just tried it various ways and we got the best results
sending via recognisable 'mainstream' mail service providers. We can
live within the limits of their quotas, so we just do it that way.
If you want to
On Thu, Nov 25, 2010 at 12:41 PM, villas wrote:
> I appreciate that we can send mail directly, but these days mail from
> unrecognised servers is considered 'suspicious' by the recipients'
There's a big difference between 'unrecognized' and 'unidentified'.
The latter is a server that is not prope
Same problem for me.
On 25 nov, 06:04, Anthony wrote:
> Is the test supposed to be done without the win32 extensions installed
> (I have them installed)?
>
> Anyway, I tried the test. Before updating trunk, it behaves as you say
> -- I opened two windows in quick succession -- the first took 10
>
On Nov 25, 9:40 am, selecta wrote:
> why not send one mail with everybody in bcc?
It depends on your mail provider. In our case, I found out that they
do not like more than 50 recipients in one single email. So what I
often do is put 45 names at a time in BCC. I also limit it to 500 per
hour.
Hi,
Can anyone else replicate this issue (error 1 described at the top of
this post)?
It seems to be an error introduced when creating an app with the
wizard and specifying related (referenced) tables in an incorrect
order.
Thanks.
but i do not want to run this code in the shell but in a controller
controllers/test.py
def test():
'this is a test'
import applications.myapp.controllers.test
return dict(a = dir(applications.myapp.controllers.test))
i have similar problems for other objects like db, request ...
wha
It should work if you run web2py in shell mode and run the models,
this will define auth.
python web2py.py -S myapp -M
then do the import etc.
I just tried it on my own app, worked ok. The __init__.py had to be
there (it was empty).
Ron
On Nov 25, 1:58 am, selecta wrote:
> Is it possible to a
Hi Annet,
thank you very much for your help.
I have used notes from your log and all works excellent.
However at this time I need to do such translation in 3-rd parameter
of IS_IN_DB(...):
IS_IN_DB(db, 'lesson.id', '%(start)s')
...with field name (start) this works fine, but when I try to use any
Is it possible to access the docstrings of controller functions?
i tried the following:
I added __init__.py to the controllers folder
and wrote
import applications.myapp.controllers.mycontroller
print dir(applications.myapp.controllers.mycontroller)
however this gives me
...
@auth.requires_lo
I need to run the script in the environment web2py, via cron, but
without the introductory text on the printed output:
"web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2010 [...]"
It is very important for me to output to stdout, the information
appearing on it are pro
why not send one mail with everybody in bcc?
On Nov 24, 3:50 pm, Thadeus Burgess wrote:
> the problem with mail.send is it creates a brand new connection to the SMTP
> server *every* single time you call it.
>
> If you are sending more than 10 emails at a time this will not be efficient
> and wil
1 - 100 of 104 matches
Mail list logo