May or may not be related, but I don't see any difference with before
in that I get that problem all the time. I found that it is related to
another application that won't play nice and share (like the exception
message says).
In my case, if I happen to have Aptana running before I launch web2py,
Hi,
I am using the load_action widget with plugin_wiki and passing an
arg to the controller because i would like users to update some of
these tables themselves, So here, i would like to just have the
'forms' and 'loggedInUser' args to be displayed (and preferably
without the arg names). But I
I guess the script is buggy.
Try change
SQLField('ID', type = 'bigint' , length = 20 ),
into
SQLField('id', type = 'id' ),
or
SQLField('ID', type = 'id' ),
or remove it completely.
Let me know what happens.
On Feb 17, 8:18 pm, Rupesh Pradhan wrote:
> That's probably because I used a script
+1, I would pay for a webinar. Less then a Tutorial of course.
On Fri, Feb 18, 2011 at 3:50 AM, cjrh wrote:
> On Feb 17, 4:31 pm, Massimo Di Pierro
> wrote:
> > Looks like the web2py tutorial at PyCon2011 is confirmed but
> > attendance is low. This is not good.
> >
> > I strongly encourage to
mail.send(to=sms_email(number,provider),subject='...',message='...')
where number is the phone number and provide is the company the number
corresponds to
On Feb 17, 6:06 pm, puercoespin
wrote:
> An exemple, please?
>
> My mobile phone, 123456789, what's the code for sending a SMS?
>
> On 17 feb
Hi,
I need to make an asynchronous http request to one of my controller
functions in order to some lightweight background processing
(refreshing some cached objects). I came upon this thread:
http://groups.google.com/group/web2py/browse_thread/thread/bbe66f10843d6228/af4d1c0e8e8937d2?lnk=gst&q=we
this used to work. One of the rocket updates must broken it.
On Feb 17, 6:42 pm, Jonathan Lundell wrote:
> On Feb 17, 2011, at 4:30 PM, Marin Pranjic wrote:
>
> > Restarting web server does not restart web2py, i think.
> > Not sure if it should restart it or not, but... same here
>
> You're right
Please open an issue in google code and add the link below. If sqlite
supports it web2py needs an API for it.
On Feb 17, 6:23 pm, elffikk wrote:
> hi,
> sqlite supports fulltext searchhttp://www.sqlite.org/fts3.html
> also mysql, mssql, oracle, and soon GAE
>
> what could be some steps to add sup
This is a bug, please open an issue on google code and I will try fix
it during the week-end.
On Feb 17, 5:10 pm, firedragon852 wrote:
> I am using oauth20_account and oauth10a_account as well as the regular
> form login authentication.
>
> I want to be able to execute a method after the user log
It's still in beta, but you might also consider something like DotCloud (
http://www.dotcloud.com/) as a possible compromise between the
ease/limitations of GAE and the flexibility/challenges of EC2. They handle a
lot of the system administration and scaling issues for you, but you have
more fle
Is there a example on how to do this. Thanks for all the help
On Feb 17, 11:50 am, stargate wrote:
> So its better to start with a mySQl database and connect to that
> database then using the mysql lite database. What I like is out of
> the box web2py has a user login now is it possible to exp
That works very well. Thanks Anthony!
On Feb 17, 8:16 pm, Anthony wrote:
> Maybe do something like this in a model file:
>
> import os
> is_mobile_client = [code testing for mobile client goes here]
> if is_mobile_client:
> mobile_view = '%s.mobile.%s' % (request.function, request.extension)
That's probably because I used a script to generate a DAL script using a
script that was written 2 years ago (2009)!!!
URL: https://groups.google.com/d/topic/web2py/AnJ0iPH0WaI/discussion
Anyway, what is you recommendation, Massimo?
1. Do I change my table definition script and remove the ID fie
Hi!
I lost too much time because of strange pickleing issues, so I think
it would be nice to share and save you some time.
If you are going to use mod_wsgi remember to read the following first
(not what I did):
http://code.google.com/p/modwsgi/wiki/IssuesWithPickleModule
The essence is put ever
The script 'extract_mysql_models' provided in the script folder of the src
version of web2py is giving the following error.
The original script that was first given in the URL below worked fine.
https://groups.google.com/d/topic/web2py/AnJ0iPH0WaI/discussion
Given below is the traceback.
C:\Do
great! thank you
Wow,
Thank you so much for the great responses. I really love the community here
at web2py. From the discussion so far I feel I would rather go with GAE at
this point, but I do have one worry, and that is going along with the line
of, "If the app fits GAE" go with Google. How do I know if it fits o
Did you look here:
http://web2py.com/book/default/chapter/09#Services-and-Authentication
Anthony
On Thursday, February 17, 2011 8:50:56 PM UTC-5, elffikk wrote:
> I want to do that
>
> @auth.requires_login()
> @service.amfrpc3('myservice')
> def item_list():
> return [1,2,3]
>
> but
I want to do that
@auth.requires_login()
@service.amfrpc3('myservice')
def item_list():
return [1,2,3]
but of course it will not work as it can't redirect to login form,
how to use then authentication and authorization here?
I haven't tried it, but here's my understanding:
You can send a text message simply by sending an email -- the email address
is of the form [mobile_number]@[provider-specific_email_server]. For
example, if the mobile number is 123-456-7890 and the provider is Sprint,
you can send an SMS messag
If you are loading separate pages from the same site you may as well
redirect. Just use ajax to load small amounts of extra data within a
page. Your design, your choice :)
Re: SMS. I tried bulksms.com and it seemed really efficient, but I
suppose an SMS service is best chosen depending on what
Maybe do something like this in a model file:
import os
is_mobile_client = [code testing for mobile client goes here]
if is_mobile_client:
mobile_view = '%s.mobile.%s' % (request.function, request.extension)
if os.path.exists(os.path.join(request.folder, 'views',
request.controller, mobi
How about setting up some real solid documentation with Sphinx?
It is low hanging fruit, but I think getting some good documentation set up
would help the web2py community directly.
I don't know the current testing coverage percentages now, but getting those
to 90%-100% might be another good one.
On Feb 17, 2011, at 4:30 PM, Marin Pranjic wrote:
> Restarting web server does not restart web2py, i think.
> Not sure if it should restart it or not, but... same here
You're right, it doesn't. And it doesn't even properly stop the web server, it
appears.
My advice: start & stop web2py from the
I did that before. as_list() seems to solve the problem.
Atenciosamente,
Elcimar Leandro
Analista de Suporte, TI JG Telecom/Net Fácil
71 8842-9699, 71 9166-2678
http://twitter.com/simakwm
2011/2/17 Vasile Ermicioi
>
> In the web2py terminal I can read all session keys through 'todas'
>> var
On Feb 17, 2011, at 1:10 PM, pbreit wrote:
> Did anyone figure out how to stop and start Web2py from the console on a Mac?
> When I do it, it doesn't work when it starts back up. It stalls when it opens
> up the browser window and tries to go to my home page. I remember some
> discussion about p
InstantPress is nice but the UI is a little too fancy for me. No reason to
re-invent the wheel here.
> In the web2py terminal I can read all session keys through 'todas'
> variable, but in the view 'todas' seems like another kind of object I'm
> having troubles to access. It has even a table header as its first item.
>
>
in controller you should add
return dict(todas=todas)
and todas variable
Oh, I see. So there's not much of a reason to use the "stop/start server"
buttons? Maybe a "restart web2py" button on the console would be nice.
Nevermind!
Figured it out.
differently from seeing it as a list of dict in terminal, in the view I had
to use todas.as_list()
:)
Atenciosamente,
Elcimar Leandro
Analista de Suporte, TI JG Telecom/Net Fácil
71 8842-9699, 71 9166-2678
http://twitter.com/simakwm
2011/2/17 Elcimar L. Santos
>
Yes, a blog for GAE could be a killer app - a free blogging platform,
particularly attractive to people in China who are blocked from using
Wordpress.com. Our killer blog app would be based on InstantPress, of
course, but its admin interface would have to work like Wordpress,
just as OpenOffice has
Yes, active = still exists.
I am writing sessions on a db.
I made a query like: todas=db().select(db.web2py_session_chat_basico.ALL)
In the web2py terminal I can read all session keys through 'todas' variable,
but in the view 'todas' seems like another kind of object I'm having
troubles to access
Restarting web server does not restart web2py, i think.
Not sure if it should restart it or not, but... same here
On Thu, Feb 17, 2011 at 11:30 PM, Jonathan Lundell wrote:
> On Feb 17, 2011, at 2:21 PM, pbreit wrote:
> > The "stop server" and "start server" buttons on the Tcl console app.
>
> FWI
hi,
sqlite supports fulltext search http://www.sqlite.org/fts3.html
also mysql, mssql, oracle, and soon GAE
what could be some steps to add support for fulltext search in dal?
An exemple, please?
My mobile phone, 123456789, what's the code for sending a SMS?
On 17 feb, 22:46, Massimo Di Pierro
wrote:
> One solution is to send sms via emails. It is cheap, reliable and does
> not rely on third party services:
>
> web2py/gluon/contrib/sms_utils.py
>
> On Feb 17, 3:42 pm,
Ah, ok. Looks like it is probably following a route. Sorry about that.
So if you just call the function in a browser it works fine? But the cron
doesn't seem to trigger the function? I assume you've restarted web2py?
Include a built-in widget like the options_with_add_link slice
(http://web2pyslices.com/main/slices/take_slice/11) to allow one to quickly
add a new record into to a referenced table without having to go to a
separate screen. Perhaps it's not glamorous but its presence might make
adoption easi
It doesn't work. If I write in crontab:
*/1 * * * * root *applications/rushops/cron/test
It rises an error:
Invalid application name: rushops/applications/rushops/cron/test
On 18 фев, 02:08, pbreit wrote:
> Try putting in a more complete path such as:
> *applications/myapp/cron/test
Hi all,
So I started looking into using an extension to get a different view.
Much like adding .xml and .json give you different forms of the same
action, it seems like .mobile.html or .mobile would be able to do the
same for a mobile site.
In addition, I figure I'll use routes_in to map anything
I am using oauth20_account and oauth10a_account as well as the regular
form login authentication.
I want to be able to execute a method after the user logs in. For the
regular form login authentication, return
dict(form=auth.login(onaccept=execute_me_after_login)) executes
execute_me_after_login(
Ah, that makes perfect sense.
Thanks for your help.
I use a two-way SMS service from CDYNE and RESTful web API to send/receive.
--Marc
On Thu, Feb 17, 2011 at 4:42 PM, Ovidio Marinho wrote:
> what makes your application, it sends sms:? you can share this application?,
> I need an application that sends SMS.
>
> 2011/2/15 Marc Smith
>>
>> Hi,
>>
any recommendations for Linux?
On Feb 17, 2011, at 2:21 PM, pbreit wrote:
> The "stop server" and "start server" buttons on the Tcl console app.
FWIW, I've been running web2py from a Terminal shell prompt quite a bit, and
starting/stopping works fine (with the source release, or a trunk clone).
You might try comparing the out
On Feb 17, 2011, at 12:45 PM, pbreit wrote:
> I just started using a fantastic, free Mercurial client for Mac: MacHG
> (http://jasonfharris.com/machg/). Definitely watch the video.
>
> It prompted me to really encourage anyone who is thinking about using version
> control to go ahead and do it.
I changed it to "overriding" in the book.
On Thursday, February 17, 2011 4:42:46 PM UTC-5, Massimo Di Pierro wrote:
> Oops. You are right. Overriding not overloading.
>
> On Feb 17, 1:55 pm, Carlos wrote:
> > Hi Massimo,
> >
> > Thanks for clarifying this.
> >
> > I was confused by "overlo
The "stop server" and "start server" buttons on the Tcl console app.
I highly encourage anyone who is thinking about cloud to seriously consider
it. I see a lot of postings in this group around struggles with shared
hosting. I would much rather trade those hassles for the hassles of running
my own servers. It's getting much easier every day. I'm on RackSpace righ
http://arstechnica.com/business/news/2011/02/virtual-private-servers.ars
by Glenn Fleishman, at Ars Technica. Not web2py (or even Python) specific, but
quite possibly of interest to many of us.
On Feb 17, 2011, at 11:54 AM, pbreit wrote:
> I'm still confused by routing.
>
> 1) I see routers.example.py and routes.example.py. Which do I use? Should it
> be named routers.py or routes.py? Do they work together? Which can be used at
> the app level?
You choose one or the other, as routes.p
One solution is to send sms via emails. It is cheap, reliable and does
not rely on third party services:
web2py/gluon/contrib/sms_utils.py
On Feb 17, 3:42 pm, Ovidio Marinho wrote:
> what makes your application, it sends sms:? you can share this application?,
> I need an application that sends
what makes your application, it sends sms:? you can share this application?,
I need an application that sends SMS.
2011/2/15 Marc Smith
> Hi,
>
> I am having trouble using the LOAD component with forms to produce a
> "wizard" style multiple form type setup (eg, enter information on one
> "screen
Again. How do you define "active"?
The file below provides a condition for deleting sessions files.
Perhaps all files that do not meet the criteria should be considered
active?
On Feb 17, 2:11 pm, "Elcimar L. Santos"
wrote:
> Ok, thanks.
>
> Now how would you list all current sessions for an app
Oops. You are right. Overriding not overloading.
On Feb 17, 1:55 pm, Carlos wrote:
> Hi Massimo,
>
> Thanks for clarifying this.
>
> I was confused by "overloading" ... I believe the correct term is
> "overriding" (via inheritance)?.
>
> Thanks again,
>
> Carlos
i'm enjoying mercurial. in all craziness i use it to back up my home
directory on ubuntu. the last time i crashed my machine i was up and
running from my backup and record time!
FWIW i have all of my non-code repositories private on a harddisk hanging
off one of my computers at home. i think
Another change I made was the CRUD Customization
input[type=text] {width: 50px;} on a separate CSS and
now my update crud is not working properly. Now I dont get the delete
checkbox as before...really odd behavior..I reverted the changes and
still does not work.
On Feb 17, 11:38 am, greenpois
How are you starting it?
On Feb 17, 2011, at 1:10 PM, pbreit wrote:
> Did anyone figure out how to stop and start Web2py from the console on a Mac?
> When I do it, it doesn't work when it starts back up. It stalls when it opens
> up the browser window and tries to go to my home page. I rememb
Did anyone figure out how to stop and start Web2py from the console on a
Mac? When I do it, it doesn't work when it starts back up. It stalls when it
opens up the browser window and tries to go to my home page. I remember some
discussion about processes not shutting down quickly or at all. Is th
Try putting in a more complete path such as:
*applications/myapp/cron/test
On Thu, Feb 17, 2011 at 1:05 PM, villas wrote:
> My first impression was that seem a lot of code in one function.
> Maybe better to create some separate functions and redirect depending
> on the form no. etc.
Sorry -- it started nice, but as I moved and tried different things,
it got a bit messy.
function is very simple. Just updates 1 row per every minute:
def test():
shop = db(db.shops.id==1).select().first()
shop.update_record(deletedate=request.now)
db.commit()
return 'done'
On 18 фев, 00:56, pbreit wrote:
> I would suggest doing something simple to at least confirm t
I just started using a fantastic, free Mercurial client for Mac: MacHG
(http://jasonfharris.com/machg/). Definitely watch the video.
It prompted me to really encourage anyone who is thinking about using
version control to go ahead and do it. It is a great idea even for one
developer working on
Looks nice. I tried Kodingen at one point which has impressive aspirations
but seems to fall short. I quickly moved back to a more proper development
environment (TextMate + Mercurial). I think more developers should consider
version control. It's not as difficult as it seems if you keep it simp
Just updated to use mobile.sniffer.
(By the way, for Windows, you need Visual Studio 2008 C++ to compile
it, or you get the vcvarsall.bat error.)
On Feb 17, 12:14 am, Chris wrote:
> Hello,
>
> I recently tried
> usinghttp://www.web2py.com/examples/static/mobile_device_detect.py
> for mobile devi
Hi selecta and Massimo,
I just want to confirm this is the correct (and current) solution for the
file upload issues with web2py's ajax loaded components?.
Thanks,
Carlos
Ok, thanks.
Now how would you list all current sessions for an app?
Atenciosamente,
Elcimar Leandro
Analista de Suporte, TI JG Telecom/Net Fácil
71 8842-9699, 71 9166-2678
http://twitter.com/simakwm
2011/2/17 Massimo Di Pierro
> define "active"
>
> look at scripts/sessions2trash.py which d
I'd love to see 1) WordPress copy and 2) Vbulletin/FluxBB/etc copy. No fancy
UIs. Keep it simple.
I would suggest doing something simple to at least confirm that it is
working OK. For example, updating a timestamp in your database every n
minutes.
Hi Massimo,
Thanks for clarifying this.
I was confused by "overloading" ... I believe the correct term is
"overriding" (via inheritance)?.
Thanks again,
Carlos
I'm still confused by routing.
1) I see routers.example.py and routes.example.py. Which do I use? Should it
be named routers.py or routes.py? Do they work together? Which can be used
at the app level?
2) What would a routing file look like that matches the current default
routing behavior? I w
I have VDS with 256mb, and all is used
Seems it's too low.
On 18 фев, 00:24, Massimo Di Pierro
wrote:
> How much memory do you have? can you check with top memory
> consumption?
> Do you cron jobs take long time?
>
> On Feb 17, 10:45 am, LightOfMooN wrote:
>
>
>
>
>
>
>
> > if it runs with pytho
very useful - thanks!
# coding: utf8
if auth.is_logged_in():
me=auth.user.id
else:
me=None
db.define_table('timesheet',
Field('empleado',db.auth_user),
Field('DesdeFecha', 'date'),
Field('HastaFecha', 'date'),
Field('primerdia',length=4,default='0'),
Field('segundodia',length=4, default='8'),
On Feb 17, 2011, at 11:24 AM, Massimo Di Pierro wrote:
>
> How much memory do you have? can you check with top memory
> consumption?
> Do you cron jobs take long time?
Could be a recursion problem, too.
>
> On Feb 17, 10:45 am, LightOfMooN wrote:
>> if it runs with python web2py.py -i 127.0.0.
Hello,
How difficult could it be to add this :
Field('fieldname','type',otherstuff,subform_alias=True)
subform_alias=True : will make sure that if the table is used into a subform
(as a subtable) it fields in common with the other table fields will be
renamed... So, this table could be used tran
On Feb 17, 2011, at 10:37 AM, Johann Spies wrote:
> What are the actual URLs for the images in question? As they appear in the
> page source at the browser, I mean.
>
>
> src="/kb/static/DSC_1403.png" (I moved the image from /kb/static/images to
> /kb/static - now it works.
>
> I would still
Can you post your model so I can try reproduce the problem?
On Feb 17, 12:41 pm, greenpoise wrote:
> Ok, very cautious when I program cuz I am not an expert by any means.
> My application just saves one value to the table. Even if I go through
> web2py database administration tool, date values ar
'bigint' is not a valid type in web2py. It never was. It never
appeared in any documentation.
BTW. You should use Field, not SQLField. SQLField was deprecated 2
years ago.
On Feb 17, 10:42 am, Rupesh Pradhan wrote:
> I made the table definition script using the script that was in the
> following
define "active"
look at scripts/sessions2trash.py which deletes expired sessions.
On Feb 17, 12:02 pm, Elcimar wrote:
> Is there a way to get and access all active application's sessions?
> I'd like to make a simple chat app using sessions.
I am not completely sure of the context of the thread but to avoid
confusion...
anyhelper.xml() is the same as str(anyhelper) is serialize the
anyhelper in HTML not in XML, as the name suggests.
FORM and SQLFORM are no exception. The operator can be overloaded
class MYFORM(FORM):
def xml(sel
How much memory do you have? can you check with top memory
consumption?
Do you cron jobs take long time?
On Feb 17, 10:45 am, LightOfMooN wrote:
> if it runs with python web2py.py -i 127.0.0.1 -p 8000
> it works fine at once, and after minute:
>
> Exception in thread Thread-15:
> Traceback (most
BTW. Is anybody using this fetaure? If you are please send me
feedback.
On Feb 17, 10:38 am, DenesL wrote:
> web2py does not create the DB, except for SQLite.
> Once you have the DBs you can connect to them using web2py.
>
> For replication
> see:http://web2py.com/book/default/chapter/06#Replica
It's because of pythons limitations in overloading operators.
You can change behavior of &, |, ~ in python, but cannot change and, or,
not.
On Thu, Feb 17, 2011 at 7:00 PM, Paul Gerrard wrote:
> On more than one occasion, I've been caught out by a slip in my select
> statements. If you use 'and'
One more thing which might not be the culprit but just in case, I
upgraded web2py yesterday. Current version using is 1.92.1
On Feb 17, 10:41 am, greenpoise wrote:
> Ok, very cautious when I program cuz I am not an expert by any means.
> My application just saves one value to the table. Even if I
On Feb 17, 4:31 pm, Massimo Di Pierro
wrote:
> Looks like the web2py tutorial at PyCon2011 is confirmed but
> attendance is low. This is not good.
>
> I strongly encourage to attend.
I would love to attend, but I am on the wrong continent. As usual.
Ok, very cautious when I program cuz I am not an expert by any means.
My application just saves one value to the table. Even if I go through
web2py database administration tool, date values are not being saved
agh..annoying..I get no error whatsoever.
any help appreciated
thanks
> No, this is a special case for favicon.ico and robots.txt
>
> By "root_static" (which I agree is a little confusing), we mean static
> files like favicon.ico that are always accessed in the server root. This is
> simply a list of those files (and the default list should normally be all
> you need
Hello, in my progress of making the Debian packaging of web2py I'm dealing
with the non-always-clear world of licensing.
Up to now, I've some clear parts, which can be read at:
http://paste.debian.net/107968/
For Massimo and all the web2py contributors, it would be great if you can
take a look
I see similar problems with DAL in version 1.92.1 (Linux, MySQL). DAL needs
to be fixed.
-Sebastian
I believe that as 'and' is a python keyword it cannot be used for DAL
in that way. You may be right about an error message. However,
perhaps some developers rely on a python 'and' in a query (but don't
ask me for an example!.
-D
On Feb 17, 6:00 pm, Paul Gerrard wrote:
> On more than one occas
My first impression was that seem a lot of code in one function.
Maybe better to create some separate functions and redirect depending
on the form no. etc.
Your other strategy of loading the forms via ajax looks promising,
but it looks like it would always load 'one' in the example given:
{{=LOAD(
Is there a way to get and access all active application's sessions?
I'd like to make a simple chat app using sessions.
On more than one occasion, I've been caught out by a slip in my select
statements. If you use 'and' rather than '&' to combine criteria for a
select you get different results. In the first case, (and) the code
returns a single record, regardless of the values of the critieria
used for the selection
Sorry this doesn't directly answer your question, but...
for this kind of remote authentication people seem to have put most
effort into Janrain. This includes support for:
Aol, Yahoo!, Facebook, Twitter, LinkedIn, Google, MySpace, Windows
Live, PayPal, Hyves, Verisign, MyOpenID, OpenID, Flickr
On Feb 17, 2011, at 9:16 AM, Andrew Evans wrote:
> Just figured it out :-)
>
> routes_onerror = [(r'*/*', r'/error/index')]
>
> works if error/index is in the application
>
> *cheers
>
> tested it with two domains
Depending on routes_in, yes.
On Thursday, February 17, 2011 11:51:03 AM UTC-5, Carlos wrote:
>
> Hi,
>
> I can see the book says the following in chapter 7:
>
> http://www.web2py.com/book/default/chapter/07
>
> "The class SQLFORM is defined in "gluon/sqlhtml.py". It can be easily
> extended by overloading its xml method, th
On Feb 17, 2011, at 9:01 AM, Andrew Evans wrote:
> hey is there anyway to say get the current site the user is on
>
> for example: routes_onerror = [(r'*/*', r'/dojo/error/index')]
>
> this returns all domains to dojo/error/index. Is it possible to do somehing
> like this /request.application/e
Just figured it out :-)
routes_onerror = [(r'*/*', r'/error/index')]
works if error/index is in the application
*cheers
tested it with two domains
hey is there anyway to say get the current site the user is on
for example: routes_onerror = [(r'*/*', r'/dojo/error/index')]
this returns all domains to dojo/error/index. Is it possible to do somehing
like this /request.application/error/index/
any ideas
*cheers
A component library rooted on LOAD.
Pages would be made by components sibiling or nested.
MVC pattern applied then not to the page but component oriented.
2011/2/17 Anthony :
> Maybe get started on some of these ideas:
> https://groups.google.com/d/msg/web2py-developers/55_7Kr3jDjI/0008xQ036uYJ
1 - 100 of 145 matches
Mail list logo