Hi,
I have some difficulties on using @resquest.restful().
I want to do some experiments using GET, POST, PUSH and DELETE, but i can
not make it work.
Only GET works for me.
How can i do for example a def POST(name): ??
I did this:
def POST(name):
return db.blog.validate_and_insert(name =
Use it like a helper.
in a module I have:
(this fail because LOAD is not passed in current and loadfactory need
enviroment)
def renderimages(self, page=1, postid=0):curvars = {}
curvars['page']=pagecurvars['postid']=postid
return LOAD('plug
If works for me too.
(tested against servers running OpenLdap over Debian Squeeze and Debian Lenny)
Regards.
2011/5/17 Joseph.Piron :
> Yes it works (MS2003 AD server).
>
> On May 17, 3:54 pm, Massimo Di Pierro
> wrote:
>> It is possible that some system are more picky than others
>> does it work
2011/5/18 luckysmack :
> I recently listened to a podcast from a HOPE conference last year, and
> the podcast talked about post data obfuscation. Where when the post
> data is submitted it is obfuscated by javascript and a false copy is
> passed through POST and a real copy is sent to the server. i
I use vps.net with apache and firebird DB, but when the server was
under higher loads it used to easily jam and require reboot. I now do
this:
1 node: Firebird DB server
2 nodes: Apache
It is no longer a 'cheap' set-up, but it is the most reliable we ever
had and I can effectively run as many d
On a quick side note, you are not supposed to use Webmin with Ubuntu. It is
mentioned in several places that it breaks Debian-based systems. Ubutnu has
been pushing eBox (now Zentyal) which is more for setting up a small
business infrastructure than managing a web server. As is mentioned,
manag
I just make POST method work with an script, but i still have some
doubts about PUSH, and DELETE.
def testing():
import urllib
import urllib2
params = {
'name': request.args(0),
'birth': request.args(1)
}
http_response = urllib2.urlopen('http://localhost/post/p
Hi,
I need some help about the delete and push methods using restful api.
I made POST method work using urllib2, but i can not find anything on the
web about DELETE AND PUSH
Please help
Thks in advance
Vasile,
I am using Python 2.5 on Windows XP,
MySQL mysql Ver 14.14 Distrib 5.1.32, for Win32 (ia32)
InnoDB engine, UTF-8 encoding
I have large database with lots of data, hard to reproduce here.
Application works fine on web2py version 1.86.2 and works with many
small errors in web2py 1.95, abou
Hi Ross,
On May 18, 11:59 am, Ross Peoples wrote:
> On a quick side note, you are not supposed to use Webmin with Ubuntu. It is
> mentioned in several places that it breaks Debian-based systems. Ubutnu has
> been pushing eBox (now Zentyal) which is more for setting up a small
> business infrastru
web2py: Version 1.92.1 (2011-02-16 15:04:40)
with_alias fails to work when where clause is specified. It works fine when
documented example is run
>>> db()._select(db.person.name, Father.name, Mother.name,
left=(Father.on(Father.id==db.person.father_id),
Mother.on(Mother.id==db.person.mother_
Hi,
Thank you all for your comments and recommendations.
Based on your feedback, I'm leaning towards using Nginx (instead of Apache)
for all static and dynamic content.
One question: is the following script up-to-date with everything I need to
setup web2py with nginx?:
http://web2py.googl
Hello,
How can I change this http://www.test.com/blog to this blog.test.com ??
I know that ia have to change in routes.py but i do not know how.
i tried this in routes.py:
(r'.*blog.test.com*', r'http://www.test.com/blog'),
but it still does not work.
Many thaks in advance.
I just upgraded my trunk;
I get this exception
S"('define_table argument is not a Field or Table: .first_name',)"
Any ideas?
More Info...
S'Traceback (most recent call last):\n File
"/apps/www/web2py.trunk/gluon/restricted.py", line 184, in
restricted\nexec ccode in environment\n File
"/apps/www/web2py.trunk/applications/app/models/db.py", line 92, in
\nauth.define_tables() # cre
Thanks Bruno, this is an interesting optimisation!
On May 15, 9:16 pm, Bruno Rocha wrote:
> in your controllers you will just need to instantiate your classes and work
> with inheritance,
But I need to have some basic controller class. It must expose methods
as callable URLs. Do you have any id
For one, that regex doesn't look right since there is no . in the front of
blog.test.com
Also, you should be able to do it with domains like this:
domains = { "blog.domain.com" : "blog"},
More info:
http://code.google.com/p/web2py/source/browse/router.example.py
Don't for get to restart web2py between edits to your routes file.
Seems unnecessary. Is there a specific reason you need this level of
protection?
the fix is in trunk
On May 18, 5:29 am, José Luis Redrejo wrote:
> If works for me too.
> (tested against servers running OpenLdap over Debian Squeeze and Debian Lenny)
> Regards.
>
> 2011/5/17 Joseph.Piron :
>
>
>
>
>
>
>
> > Yes it works (MS2003 AD server).
>
> > On May 17, 3:54 pm, Massimo Di
Is the problem how to build the client or the server?
On May 18, 7:02 am, Tiago Moutinho wrote:
> I just make POST method work with an script, but i still have some
> doubts about PUSH, and DELETE.
>
> def testing():
>
> import urllib
> import urllib2
> params = {
> 'name': re
Hello,
How can i export a result set to PDF file?
e.g.:
def export_PDF()
results = db().select()
return pdf_file
Thanks in Advance
Please show us what you have so far
On May 18, 7:33 am, Tiago Moutinho wrote:
> Hi,
>
> I need some help about the delete and push methods using restful api.
> I made POST method work using urllib2, but i can not find anything on the
> web about DELETE AND PUSH
>
> Please help
>
> Thks in advance
alias work only with left outer joins only.
On May 18, 9:40 am, Rohan wrote:
> web2py: Version 1.92.1 (2011-02-16 15:04:40)
>
> with_alias fails to work when where clause is specified. It works fine when
> documented example is run
>
> >>> db()._select(db.person.name, Father.name, Mother.name,
>
what's in your db.py?
On May 18, 9:50 am, "David J." wrote:
> More Info...
>
> S'Traceback (most recent call last):\n File
> "/apps/www/web2py.trunk/gluon/restricted.py", line 184, in
> restricted\n exec ccode in environment\n File
> "/apps/www/web2py.trunk/applications/app/models/db.py", li
import mysqldb
from dal import MySQLAdapter
MySQLAdapter.driver = mysqldb
On May 18, 7:51 am, SergeyPo wrote:
> Vasile,
>
> I am using Python 2.5 on Windows XP,
> MySQL mysql Ver 14.14 Distrib 5.1.32, for Win32 (ia32)
> InnoDB engine, UTF-8 encoding
>
> I have large database with lots of data, h
Sounds like you are going in the right direction.
That Nginx setup scripts looks OK at a glance.
If you are already using version control, I would suggest avoiding editing
files directly on your server. Instead, edit locally, push to Bitbucket and
then pull from your server. It sounds tedious b
Hi Carlos
>> I will follow your advice about picking a strong password and
>> changing the default 22 port - would this be enough?.
Well, is there ever enough security? All I can say is that it has
been good enough for my modest security requirements. Oh, I think I
also limited the ssh access t
I created this controller named api, as seen in you video.
@request.restful()
def place():
def GET(id):
place = db.place(id)
return place.as_dict() if place else None
def POST(name, description):
return db.place.validate_and_insert(name = name, description =
descri
This is the original source:
https://help.ubuntu.com/community/WebMin
and here's a bug report about it:
https://answers.edge.launchpad.net/ubuntu/+question/2873
These two are a bit old now, so I don't know if things have changed, but
merely mentioning the word webmin in the Ubuntu forums a cou
I thought this might have gotten lost in the philosophical discussions
about line breaks, so figured I'd post it as a separate thread:
Using the advice given in a previous post, I'm doing this to try to
change the rows and columns for a TEXTAREA:
form=SQLFORM(db.contest,record=contest,sub
Hi,
i answer it the other post.
But my problem is in the client.
I haven't tried it, bu there's a 'generic.pdf' view template. Looks like it
takes the HTML inside the 'content' div of a rendered HTML template and
converts it to markmin and then to PDF. So, maybe try:
def export_PDF():
results=db().select()
return dict(results=results)
Then define
Hi Ross,
Thanks for the links. I have seen mixed reports, certainly in the more
distant past, but as I said my experience since Hardy (8.04) has been
very good.
On May 18, 5:03 pm, Ross Peoples wrote:
> My own personal experience it with it a couple years was terrible. It
> destroyed several sys
Im proccessing credit card transactions where clients will be
government entities (in the US). So I want to make it as secure as
possible. Also, they talked about doing this over https as well as
there are programs out there to get past the ssl.
On May 18, 8:30 am, pbreit wrote:
> Seems unnecessa
Have you checked the base.css file for textarea references?
Https would be required but also sufficient. I've done lots of government
credit card processing and never heard of the need for further obfuscation.
If we were on Reddit, I'd upvote this. I think anything more than SSL
would just set you up for more problems in the future.
On May 18, 11:19 am, pbreit wrote:
> Https would be required but also sufficient. I've done lots of government
> credit card processing and never heard of the need for f
OK, I will answer my own question first...
In your controller:
import os
def index():
context=dict(first_name='Bob is',last_name='your uncle')
template = test_template_path =
os.path.join(current_app,'static','template_test')
test_content = response.render(templat
Hi All,
I was wondering if it would be possible to embed web2py within a C++
application. I have embedded python before in C/C++ applications to
run a script etc so I am assuming that there maybe a way to embed
web2py in another C++ process.
Thanks in advance, Andy
Seems to complain about auth.define_tables()
I have other table but I commented out.
On 5/18/11 11:45 AM, Massimo Di Pierro wrote:
what's in your db.py?
On May 18, 9:50 am, "David J." wrote:
More Info...
S'Traceback (most recent call last):\n File
"/apps/www/web2py.trunk/gluon/restricted
That would have to depend at what level you need to do that
integration. For example, starting web2py from your application is very
easy, you can just run the script to start the server.
When I have to integrate with something, I like to actually just create
a communication layer between them.
I also use dal (outside web2py) with pymysql and have no problems,
100 000+ of products are updated daily with new data from ebay
so I am interested to know if pymysql is buggy or not, and when this bug can
appear
Hello All,
I have been trying to run the GAE appserver as descried in the book
and in this slice: http://web2pyslices.com/main/slices/take_slice/126#end
For some reason I cant get it to run.I am using Ubuntu 11.04 and have
installed Python2.5.
Here is the error I get:
:/webdev/google_appengine$ p
Did you subclass the Auth class or something? And more importantly, did you
restart your web2py server after updating from trunk?
Ross;Massimo; sometimes the most obvious solution is the best;
I just updated again and restarted; seems to be ok;
Not sure what the trouble was; seems like something was modified since
last time I updated from trunk.
AOK;
Thanks for your help.
David
On 5/18/11 3:26 PM, Ross Peoples wrote
I would also have to say that SSL is an industry standard, even by
government and payment card processing standards. I have to keep a Ubuntu
web server up to the latest PCI (payment card industry) tests since we
process credit cards internally. The test runs quarterly and emails me a
report of
File web2py.exe created by py2exe is a simple example of an embedded
web2py.
On 18 mayo, 19:24, j2kvideo wrote:
> Hi All,
>
> I was wondering if it would be possible to embed web2py within a C++
> application. I have embedded python before in C/C++ applications to
> run a script etc so I am ass
Hi,
there's this MSSQL server running remotely, and I would like to access
it with DAL. So I'm thinking, i should export to CSV then import using
dal.py in something local (like SQLite). Here's the problem... I don't
know how to dump the MSSQL tables to CSV :(
This is a 2005 MS SQL install. Would
Hi there. Is there an official features page? I am looking for a
feature that was added to web2py a few months ago (did not bookmark
it!!!) but anyways, it was a feature that was common in ruby and was
added to web2py. The example presented was of listing prices from
other websites (I think it was
If you know the mssql table structure, you can create a quick web2py
model:
db=DAL('mssql://...')
db.define_table('yourtable',Field(...),)
print str(db(db.yourtable).select()) # outputs the CSV
On May 18, 3:32 pm, mart wrote:
> Hi,
>
> there's this MSSQL server running remotely, and I would
Perhaps this helps:
http://code.google.com/p/web2py/source/list
we do not have a features page other than the main index page.
On May 18, 3:36 pm, greenpoise wrote:
> Hi there. Is there an official features page? I am looking for a
> feature that was added to web2py a few months ago (did not boo
ok, that's sounds like a good idea (btw - dal is worth gold!)
Thanks for the help Massimo! :)
On May 18, 4:43 pm, Massimo Di Pierro
wrote:
> If you know the mssql table structure, you can create a quick web2py
> model:
>
> db=DAL('mssql://...')
> db.define_table('yourtable',Field(...),)
> pr
ERRATA:
> db=DAL('mssql://...')
> db.define_table('yourtable',Field(...),,migrate=True,fake_migrate=True)
> print str(db(db.yourtable).select()) # outputs the CSV
I agree with majority of sentiments above. I would like to point out that I
disagree with the statement:
"On another note, the only way obfuscate the data, would be to have an
encryption implementation in JavaScript, and a matching version in Python to
transmit the data over the wire. In this ca
On May 18, 12:43 pm, Ross Peoples wrote:
> Have you checked the base.css file for textarea references?
Yes, there is a reference to the width of a textarea in base.css.
However, removing that reference or changing the width there doesn't
change how wide the textarea appears.
But I'd just recalle
There's also the change log:
http://www.web2py.com/examples/default/changelog
On Wednesday, May 18, 2011 4:44:57 PM UTC-4, Massimo Di Pierro wrote:
> Perhaps this helps:
> http://code.google.com/p/web2py/source/list
>
> we do not have a features page other than the main index page.
>
> On M
Hi,
What do you recommend for vps hosting?.
I was pretty sure going with vps.net, but there have been several bad
experiences out there that make me nervous.
For reference: http://thepcspy.com/read/why-i-cant-recommend-vpsnet/
I am now undecided: which is better vps?, vps.net or linode?.
h
ok, got it! thanks again :)
On May 18, 5:02 pm, Massimo Di Pierro
wrote:
> ERRATA:
>
>
>
>
>
>
>
> > db=DAL('mssql://...')
> > db.define_table('yourtable',Field(...),,migrate=True,fake_migrate=True)
> > print str(db(db.yourtable).select()) # outputs the CSV
Invariably, everyone seems to have a problem with their hosting provider at
some point. Heck, even Amazon went down for over a day recently! I don't
have experience hosting on Linode but I can say that their knowledge base is
by far the best which I think speaks very well for them. And from what
i have never seen this error myself, but it seems like perhaps a type in
your app.yaml file?
Fala ai galera,
sou novo na lista e web2py e pretendo estudar pelo grubo
--
Um Abraço,
Thiago Abreu
actually i would recommend that this be removed from web2py. Ikai Lan (app
engine system developer at google) says they can detect those dummy requests
and punish apps that do that (was chatting with him at a conference last
fall). i would instead pay the modest $9 a month for "always on".
or
On May 18, 5:02 pm, Massimo Di Pierro
wrote:
> db.define_table('yourtable',Field(...),,migrate=True,fake_migrate=True)
why not just ...,migrate=False) ?
what does that combo provide?
Has noone ever had this king of need ??
On May 17, 11:59 pm, "Joseph.Piron" wrote:
> Hi all,
>
> I was wondering what would be the best way to log actions with the
> username of the logger user.
> I found several leads but none very conclusive.
>
> For example, define a filter in my model:
>
> im
I suggest you to try webfaction
Host is Ubuntu 10.04, web2py is 1.95.1
I use Firefox 3.6.17 from the Ubuntu distribution
Added the Firebug plugin.
Running on the rocket built in server port 8000 if I enable the Net tab of
Firebug
Clicking around on the application buttons all the static CSS and Javascript
resources such as jQ
Not sure exactly what you need but, yes, I think it's kind of rare.
Maybe this will work for you: by default, Web2py creates an auth_event table
and automatically records a bunch of actions like register, login, etc.
You can add your own actions with this one-liner:
auth.log_event(description='t
Seja bem-vindo ao grupo, qualquer dúvida é só falar
Abraço
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
2011/5/18 Thiago Abreu
> Fala ai galera,
> sou novo na lista e web2py e pretendo estudar pelo grubo
>
>
>
> --
> Um Abraço,
> Thiago Abreu
>
I am trying to program the ability to create a new record that defaults to a
copy of an existing record. The records include an image that I would also
like to use but can't seem to figure out how to pass it in to the SQLFORM.
For editing records, I do this which works fine:
form = SQLFORM(db.it
I ended up bypassing the built-in functionality and instead:
1) when copying pass an image to view
2) in view, if an image field is passed, display it (the form is customized)
3) in form.accepts, if copying another record, do a
record.update_record(image = ref.image)
I currently don't have a way
I have been very happy with vps.net and although have the odd minor
problem now and again, I find them very responsive. The reason I like
them in particular is that they offer Europe and USA services and the
former is good for us.
I believe web2py.com runs on vps.net and Massimo also said he was
Yep it'll work similar on hostgator - tried it out a few months back just to
see if I could get it working, haven't actually deployed anything useful but
it appears to run ok. I recall that an appropriate version of Python & flup
were already installed on my hostgator shared box. I did my insta
It's nice to see feedback from real users of these hosts. Could you
please add how much traffic you got with those plans you have?
On May 18, 6:54 am, Carlos wrote:
> Hi all,
>
> In order to prepare my web2py production system, I would really welcome all
> your advice.
>
> I will get one node fro
I have a project I've been working on. I managed to get a working
prototype going in web2py myself. But I'm not quite proficient enough
to really take it to the next stage - i.e., something a lot more
streamlined, professionally coded and ready to deploy.
It's not too terribly complicated. I imagi
what about license issues or conflict
I just found this neat little load testing service that has a decent free
tier: http://blitz.io/gclFk7822pd0W
Disclaimer: the invite link gets me additional testing capacity. But I do
think the service would be of interest to this group.
Nice tool.
I saw in my tests some headers with: X-Powered-By: ASP.NET - X-Powered-By:
Zend - X-Powered-By: Zope
why sont we have a header like that? X-Powered-By: web2py
So it will be easy to create a www.isitweb2py.com service
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
On Thu,
http://isitrails.com/
On Thu, May 19, 2011 at 1:34 AM, Bruno Rocha wrote:
> Nice tool.
>
> I saw in my tests some headers with: X-Powered-By: ASP.NET - X-Powered-By:
> Zend - X-Powered-By: Zope
> why sont we have a header like that? X-Powered-By: web2py
>
> So it will be easy to create a www.i
Thanks for your reply, I have double checked the app.yaml and the app
name matches exactly that of the application in web2py
I will just check that the softlinks appear correct as per the slice(again)
On 18/05/11 23:09, howesc wrote:
i have never seen this error myself, but it seems like perh
I strongly recommend Linode http://bit.ly/linodelinode
I am runnning a VPS (2048) on Linode and it is amazing, simple, fast and a
helpful support.
You can choose a DataCenter when creating a new Node, I read that is best to
choose London - UK
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno
2011/5/18 JorgeRpo :
> what about license issues or conflict
>
license would not be a problem if you also distribute the code of
web2py and/or other free licensed code
just for your information, the last update of this 'css framework'
bundled in web2py from time ago was on march 19 and adds a few things
http://css3buttons.michaelhenriksen.dk/
83 matches
Mail list logo