Re: [web2py] Re: Webfaction rocks

2010-05-09 Thread Albert Abril
>From a year ago I'm using djangoeurope.com, because its cheap plans, because
it's near home (Europe), and because its one-click Django-Install, for do my
test with django. Also, it does support for php, and for mysql or postresql
databases.
djangoeurope.com serves with lighttpd (may config web2py with
fcgihandler.py)

Two months ago I requested web2py one-click install at the panel.
They answered that has plans to do support for more one-click install's in
near future.
Maybe if they had help, could implement it. It would be great for us as
users, and for them as business.

Me (at ticket support system)

> I'm satisfied with the hosting.
> You're oriented to django, but i wonder if you have on mind to extend the
> automatic panel to support web2py.
> I know I can edit lighttpd manually, but an automatic panel would be
> useful.
>

>
Thanks for attention.
>

Them:

> Thanks for your feedback.
> I think in 6 months we will begin to integrate more automatically
> installers of different web applications like web2py or django-cms.
>





Regards,
Albert.

On Thu, Apr 29, 2010 at 1:24 PM, aure  wrote:

> Oh... Great! Thank you for the information, Yarko! (I really have a
> lot to learn...)
>
> Regards,
> Aurelien
>
> On 28 avr, 10:59, Yarko Tymciurak  wrote:
> > You are using a shared SSL certificate (courtesy of webfaction);
> >
> > That is, the SSL certificate is issued to a URI other than yours.
> > Depending on browser, and it's security settings it will react in
> > different ways (for example, you can have some browsers permanently
> > remember the exception you make about this particular mis-match).
> >
> > This has nothing to do with web2py - when you are ready to deploy, you
> > simply need to shop around, and decide on buying your own SSL cert.
> > for your site.
> >
> > Have fun!
> >
> > Regards,
> > -Yarko
> >
> > On Apr 28, 3:24 am, aure  wrote:
> >
> > > Hi everyone,
> >
> > > Thanks for your help!
> >
> > > @Jonathan: yes, if I disable https I can access the welcome web2py app
> > > without any problem. I just cannot login into the admin..
> >
> > > @Thadeus, yes I have told firefox to accept the SSL certificate
> > > anyway, and I can then access the app. But I would not want that to be
> > > necessary for people visiting the site... Is there a way to have
> > > visitor access the site without https and use a secure connection only
> > > for admin login? Well, I believe I would publish my apps manually
> > > anyway (in one of the ways you described), so I probably do not really
> > > need the admin to work... but an answer would still be valuable if,
> > > let us say, I would need some pages on my site to be accessed via
> > > https...
> >
> > > @Annet, for now I am just trying to use the default webfaction domain
> > > I got on registration... I subscribed to a Shared 1 service, but I
> > > don't seem to have a dedicated IP addresse. Is this a problem?
> >
> > > Kind regards,
> > > Aurelien
> >
> > > On 27 avr, 17:01, Jonathan Lundell  wrote:
> >
> > > > On Apr 27, 2010, at 7:32 AM, aure wrote:
> >
> > > > > As I had started to do it your way before you even mentioned it
> > > > > (created 2 websites...), I decided to try your solution.
> > > > > Unfortunately, when I try to access the admin website I get this in
> > > > > Firefox:
> >
> > > > > --
> > > > > Secure Connection Failed
> >
> > > > > admin.aurerua.webfactional.com uses an invalid security
> certificate.
> >
> > > > > The certificate is only valid for the following names:
> > > > >  *.webfaction.com , webfaction.com
> >
> > > > > (Error code: ssl_error_bad_cert_domain)
> > > > > --
> >
> > > > > Do you remember getting this as well when you did your setup? I do
> not
> > > > > know how to solve this...
> >
> > > > I haven't been following this thead, but...
> >
> > > > Can you access it via aurerua.webfactional.com? (That is, leave off
> the admin.) Both names resolve to the same IP, and the cert ought to work
> for the shorter address.
> >
> > > > --
> > > > Subscription settings:
> http://groups.google.com/group/web2py/subscribe?hl=en
>


[web2py] Error deploying at djangoeurope with Rocket and webproxy.

2010-05-10 Thread Albert Abril
With djangoeurope.com you can set up local proxies, which allows you to run
your own stand-alone web servers (for example lighttpd or Django development
server).
Well, I tryed to config web2py with rocket but i got some errors.

I opened a subdomain like: web2py.myhostname.org , and I opened a local port
( 64033 ), so..



aab...@s10:~/web2py: python web2py.py --nogui --ip=127.0.0.1 --port=64033
--a='testPassword'

Version 1.77.3 (2010-04-20 02:48:54)
Database drivers available: pysqlite2, MySQL, PostgreSQL
Starting hardcron...
please visit:
http://127.0.0.1:64033
use "kill -SIGTERM 10388" to shutdown the web2py server
Traceback (most recent call last):
  File "web2py.py", line 20, in 
gluon.widget.start(cron=True)
  File "/home/aabril/myhostname.org/web2py/gluon/widget.py", line 866, in
start
server.start()
  File "/home/aabril/myhostname.org/web2py/gluon/main.py", line 656, in
start
self.server.start()
  File "/home/aabril/myhostname.org/web2py/gluon/rocket.py", line 202, in
start
self._threadpool.start()
  File "/home/aabril/myhostname.org/web2py/gluon/rocket.py", line 529, in
start
thread.start()
  File "/usr/lib/python2.5/threading.py", line 440, in start
_start_new_thread(self.__bootstrap, ())
thread.error: can't start new thread



I'm missing something or i'm doing something wrong.

Regards,
Albert


[web2py] Re: Error deploying at djangoeurope with Rocket and webproxy.

2010-05-10 Thread Albert Abril
Seems that is it about permisions in threading? or maybe memory?

On Mon, May 10, 2010 at 4:04 PM, Albert Abril wrote:

> With djangoeurope.com you can set up local proxies, which allows you to
> run your own stand-alone web servers (for example lighttpd or Django
> development server).
> Well, I tryed to config web2py with rocket but i got some errors.
>
> I opened a subdomain like: web2py.myhostname.org , and I opened a local
> port ( 64033 ), so..
>
>
>
> aab...@s10:~/web2py: python web2py.py --nogui --ip=127.0.0.1 --port=64033
> --a='testPassword'
>
> Version 1.77.3 (2010-04-20 02:48:54)
> Database drivers available: pysqlite2, MySQL, PostgreSQL
> Starting hardcron...
> please visit:
> http://127.0.0.1:64033
> use "kill -SIGTERM 10388" to shutdown the web2py server
> Traceback (most recent call last):
>   File "web2py.py", line 20, in 
> gluon.widget.start(cron=True)
>   File "/home/aabril/myhostname.org/web2py/gluon/widget.py", line 866, in
> start
> server.start()
>   File "/home/aabril/myhostname.org/web2py/gluon/main.py", line 656, in
> start
> self.server.start()
>   File "/home/aabril/myhostname.org/web2py/gluon/rocket.py", line 202, in
> start
> self._threadpool.start()
>   File "/home/aabril/myhostname.org/web2py/gluon/rocket.py", line 529, in
> start
> thread.start()
>   File "/usr/lib/python2.5/threading.py", line 440, in start
> _start_new_thread(self.__bootstrap, ())
> thread.error: can't start new thread
>
>
>
> I'm missing something or i'm doing something wrong.
>
> Regards,
> Albert
>
>
>
>
>
>
>


Re: [web2py] Re: Error deploying at djangoeurope with Rocket and webproxy.

2010-05-10 Thread Albert Abril
Ok. It's a RAM issue.

the djangoeurope support answered me that:

Hello,
>>
>> I checked this and found the follow problem.
>> web2py needs more then 60 MB ram. I temporary increased the ram limit to
>> 100 MB and started the web2py with different number of threads.
>> With one thread you need 71600 KB.
>> 2 threads: 79796 KB
>> 3 threads: 89012 KB
>> 4 threads: 97208 KB
>>
>> You can definie the thread number with the option: "-n NUMTHREADS"
>>
>> aab...@s10:~/web2py$ ./web2py.py -n 2 --nogui --ip=127.0.0.1 --port=64033
>>
>>
>> I increased now the ram limit to 80MB for free.
>>
>



On Mon, May 10, 2010 at 4:16 PM, Timothy Farrell  wrote:

>  It seems that the Python installed on that platform doesn't support
> threads.  I know of no way to lock down a process in *nix to say "You can
> only have X number of threads."  but that would be stupid.  However,
> compiling Python w/o threads is common to avoid GIL thread issues.
>
> I'm not sure of a better way to check this.
>
>
> On 5/10/2010 9:13 AM, Albert Abril wrote:
>
> Seems that is it about permisions in threading? or maybe memory?
>
> On Mon, May 10, 2010 at 4:04 PM, Albert Abril wrote:
>
>> With djangoeurope.com you can set up local proxies, which allows you to
>> run your own stand-alone web servers (for example lighttpd or Django
>> development server).
>> Well, I tryed to config web2py with rocket but i got some errors.
>>
>> I opened a subdomain like: web2py.myhostname.org , and I opened a local
>> port ( 64033 ), so..
>>
>>
>>
>> aab...@s10:~/web2py: python web2py.py --nogui --ip=127.0.0.1 --port=64033
>> --a='testPassword'
>>
>> Version 1.77.3 (2010-04-20 02:48:54)
>> Database drivers available: pysqlite2, MySQL, PostgreSQL
>> Starting hardcron...
>> please visit:
>> http://127.0.0.1:64033
>> use "kill -SIGTERM 10388" to shutdown the web2py server
>> Traceback (most recent call last):
>>   File "web2py.py", line 20, in 
>> gluon.widget.start(cron=True)
>>   File "/home/aabril/myhostname.org/web2py/gluon/widget.py", line 866, in
>> start
>> server.start()
>>   File "/home/aabril/myhostname.org/web2py/gluon/main.py", line 656, in
>> start
>> self.server.start()
>>   File "/home/aabril/myhostname.org/web2py/gluon/rocket.py", line 202, in
>> start
>> self._threadpool.start()
>>   File "/home/aabril/myhostname.org/web2py/gluon/rocket.py", line 529, in
>> start
>> thread.start()
>>   File "/usr/lib/python2.5/threading.py", line 440, in start
>> _start_new_thread(self.__bootstrap, ())
>> thread.error: can't start new thread
>>
>>
>>
>> I'm missing something or i'm doing something wrong.
>>
>> Regards,
>> Albert
>>
>>
>>
>>
>>
>>
>>
>
>


Re: [web2py] Re: Production releases

2010-05-18 Thread Albert Abril
Personally, I prefer as we had until now, because add a dev and a stable
release may be a little bit complex and confusing.
Now, we have mercurial and nightly for testing purposes, and the official
version for production.
If we add more branchs, I think it could confuse new people.

(sorry my poor english :) )

On Tue, May 18, 2010 at 1:29 PM, Iceberg  wrote:

> Maintaining a 2-4 weeks gap between development release and production
> release, is certainly a systematic precaution which can earn us some
> time for bug finding and fixing. However it only works best when a
> significant amount of volunteers who is willing to update to latest
> development release quickly and often.
>
> From technical point of view, we still need more doctest, unittest
> cases to cover as much as possible features.
>
> On May18, 12:12pm, mdipierro  wrote:
> > Two weeks seems like an eternity but we will have to do as you say.
> >
> > Massimo
> >
> > On May 17, 11:09 pm, "mr.freeze"  wrote:
> >
> >
> >
> > > This is where web2py fails to earn its enterprise billing. Here's a
> > > simple solution: Call the released version the development version and
> > > promote the development version to the released version after 2-4
> > > weeks.
> >
> > > On May 17, 10:38 pm, mdipierro  wrote:
> >
> > > > You raise an excellent point.
> >
> > > > So far the only security bug was the one reported a few months ago.
> > > > 1) Yet we do need a mechanism for reporting this kind of problems.
> >
> > > > 2) We also need a team of volunteers committed to check nightly built
> > > > the week before release. So far very people check the nightly built.
> >
> > > > 3) Definitively we need more tests about features in place to avoid
> > > > that new features break old features.
> >
> > > > Bugs in new features are going to happen no matter what but that is
> > > > not a serious issue.
> >
> > > > Massimo
> >
> > > > On May 17, 10:00 pm, Kevin Bowling  wrote:
> >
> > > > > I'm going to take a stab in the dark and venture to say that I'm
> not
> > > > > the only one using web2py in a "production" environment (i.e.
> people
> > > > > other than me are accessing the app) :-P
> >
> > > > > It seems that with many recent releases there are rather
> embarrassing
> > > > > bugs.  The worst was several months ago when authentication was
> > > > > completely disabled.
> >
> > > > > Can we adopt a strategy to minimize these potential disasters?  A
> > > > > sufficient beta channel would do the trick, and a tightening of
> what
> > > > > is acceptable as a release build.
> >
> > > > > Also, how about a security channel so we know when an old version
> is
> > > > > unsafe and upgrades are mandatory?  Is there any statement on this
> > > > > already?
> >
> > > > > Regards,
> > > > > Kevin
>


Re: [web2py] Re: Idea on web server integration

2010-05-18 Thread Albert Abril
Well.. I think that it's more easy integrate a web2py installer in the
cherokee assistant, that at reverse.
Maybe, just programming the assistant in cherokee would be an excellent
point.

I'm not using cherokee in daily production, but I'm a admire the work at
this webserver since two years ago.
The assistants and the web admin are fantastic.

On Tue, May 18, 2010 at 3:50 PM, blackthorne wrote:

> A second step would be to bundle PostgresSQL with web2py + cherokee.
>
> I'm a dreamer...
>
> On May 18, 2:46 pm, blackthorne  wrote:
> > I may no have been as clear as I wanted.
> > First, this is not a Python / C / whatever issue. We like web2py and
> > being pythonic, nothing changes. This is the application layer. The
> > way it's served, wether it is web or telnet or something else it's
> > another layer. There is absolutely no limitation on running different
> > layers using different programming languages. I may be wrong but I
> > believe that currently web2py just features a webserver to support its
> > web based ide and testing. In no way you are suggested to deploy
> > web2py with cherrypy or its new web server for a serious production
> > environment. Instead, you are suggested to run it on Apache,
> > lighthttpd and cherokee, things like that (as well as you have sqlite
> > by default, but postgressql/... support for other ecosystems).
> > Second, because these are different layers, you keep all the freedom.
> > You can run web2py with cherokee using Python or in jython, Pypy if
> > you can..., no glitches. I don't see a reason to make a difference,
> > just because the web server as a different logo or uses other
> > programming language.
> > Third, I am not suggesting anything against the current model, and by
> > no means I want to end it, I'm talking about a new option, something
> > like what you have with Apache, MySQL, PHP -> MAMP/WAMP/LAMP. So
> > beginners and advanced users can be happy together...
> >
> > On May 18, 1:47 pm, Timothy Farrell  wrote:
> >
> >
> >
> > > I agree that Cherokee is an impressive server.  I think the main reason
> > > for not including it is it's non-Pythonic nature.  web2py would have to
> > > incorporate a formal build process (something it does not current have)
> > > for Windows and OSX.  It's hard to find a recent Windows build of
> > > Cherokee right now as is.  This would also remove the ability for
> web2py
> > > to run on Jython and Pypy (does it currently run on Pypy?).
> >
> > > Currently, web2py is completely Python.  It only relies on python
> > > modules.  To move beyond that is a significant step that would add
> > > magnitudes of complexity to maintain the same level of features for a
> > > little performance gain and a pretty server interface.
> >
> > > web2py advocates that advanced users should use the web-server that
> best
> > > fits their needs, but maintains a built-in server with an easy
> interface
> > > for beginners.
> >
> > > -tim
> >
> > > On 5/18/2010 7:12 AM, blackthorne wrote:
> >
> > > > hi
> >
> > > > I don't want to fill this groups with ideas, mainly with ideas that
> > > > will never see light. Anyway, if someone has more free time than me,
> > > > you may consider it.
> > > > I was checking a screencast on the awesome Cherokee web server with
> > > > it's great web interface and thinking how cool would it be to have a
> > > > bundle of cherokee with web2py deployed. Actually, cherokee it's
> > > > prepared for that. It has a set of wizards so you can easily deploy
> > > > frameworks like this (
> http://www.cherokee-project.com/doc/cookbook_ror.html
> > > > ).
> > > > A good integration of these things could allow you the full cycle of
> > > > work since the download of the required tools, development, test,
> > > > deploy just using a web browser available on any device these days!
> >
> > > > See it working athttp://www.cherokee-project.com/screencasts.html.
>


Re: [web2py] Re: Idea on web server integration

2010-05-18 Thread Albert Abril
By the way, here's a brief tutorial to config it manually.
http://www.web2py.com/AlterEgo/default/show/184

I don't know if it's working now since cherokee released 1.0.0 version.

On Tue, May 18, 2010 at 3:57 PM, Albert Abril wrote:

> Well.. I think that it's more easy integrate a web2py installer in the
> cherokee assistant, that at reverse.
> Maybe, just programming the assistant in cherokee would be an excellent
> point.
>
> I'm not using cherokee in daily production, but I'm a admire the work at
> this webserver since two years ago.
> The assistants and the web admin are fantastic.
>
>
> On Tue, May 18, 2010 at 3:50 PM, blackthorne wrote:
>
>> A second step would be to bundle PostgresSQL with web2py + cherokee.
>>
>> I'm a dreamer...
>>
>> On May 18, 2:46 pm, blackthorne  wrote:
>> > I may no have been as clear as I wanted.
>> > First, this is not a Python / C / whatever issue. We like web2py and
>> > being pythonic, nothing changes. This is the application layer. The
>> > way it's served, wether it is web or telnet or something else it's
>> > another layer. There is absolutely no limitation on running different
>> > layers using different programming languages. I may be wrong but I
>> > believe that currently web2py just features a webserver to support its
>> > web based ide and testing. In no way you are suggested to deploy
>> > web2py with cherrypy or its new web server for a serious production
>> > environment. Instead, you are suggested to run it on Apache,
>> > lighthttpd and cherokee, things like that (as well as you have sqlite
>> > by default, but postgressql/... support for other ecosystems).
>> > Second, because these are different layers, you keep all the freedom.
>> > You can run web2py with cherokee using Python or in jython, Pypy if
>> > you can..., no glitches. I don't see a reason to make a difference,
>> > just because the web server as a different logo or uses other
>> > programming language.
>> > Third, I am not suggesting anything against the current model, and by
>> > no means I want to end it, I'm talking about a new option, something
>> > like what you have with Apache, MySQL, PHP -> MAMP/WAMP/LAMP. So
>> > beginners and advanced users can be happy together...
>> >
>> > On May 18, 1:47 pm, Timothy Farrell  wrote:
>> >
>> >
>> >
>> > > I agree that Cherokee is an impressive server.  I think the main
>> reason
>> > > for not including it is it's non-Pythonic nature.  web2py would have
>> to
>> > > incorporate a formal build process (something it does not current
>> have)
>> > > for Windows and OSX.  It's hard to find a recent Windows build of
>> > > Cherokee right now as is.  This would also remove the ability for
>> web2py
>> > > to run on Jython and Pypy (does it currently run on Pypy?).
>> >
>> > > Currently, web2py is completely Python.  It only relies on python
>> > > modules.  To move beyond that is a significant step that would add
>> > > magnitudes of complexity to maintain the same level of features for a
>> > > little performance gain and a pretty server interface.
>> >
>> > > web2py advocates that advanced users should use the web-server that
>> best
>> > > fits their needs, but maintains a built-in server with an easy
>> interface
>> > > for beginners.
>> >
>> > > -tim
>> >
>> > > On 5/18/2010 7:12 AM, blackthorne wrote:
>> >
>> > > > hi
>> >
>> > > > I don't want to fill this groups with ideas, mainly with ideas that
>> > > > will never see light. Anyway, if someone has more free time than me,
>> > > > you may consider it.
>> > > > I was checking a screencast on the awesome Cherokee web server with
>> > > > it's great web interface and thinking how cool would it be to have a
>> > > > bundle of cherokee with web2py deployed. Actually, cherokee it's
>> > > > prepared for that. It has a set of wizards so you can easily deploy
>> > > > frameworks like this (
>> http://www.cherokee-project.com/doc/cookbook_ror.html
>> > > > ).
>> > > > A good integration of these things could allow you the full cycle of
>> > > > work since the download of the required tools, development, test,
>> > > > deploy just using a web browser available on any device these days!
>> >
>> > > > See it working athttp://www.cherokee-project.com/screencasts.html.
>>
>
>


Re: [web2py] google fonts

2010-05-20 Thread Albert Abril
Woow! Nice.

As said in the FAQ:
*All the fonts in the Google Font
Directoryare licensed under open
source licenses that let you use them on any website
*

On Thu, May 20, 2010 at 2:35 PM, mdipierro  wrote:

> http://code.google.com/webfonts/preview
>


Re: [web2py] google fonts

2010-05-20 Thread Albert Abril
On Thu, May 20, 2010 at 3:50 PM, Jonathan Lundell wrote:

> On May 20, 2010, at 5:51 AM, Albert Abril wrote:
>
> Woow! Nice.
>
> As said in the FAQ:
> *All the fonts in the Google Font Directory<http://code.google.com/webfonts>
>  are licensed under open source licenses that let you use them on any
> website*
>
>
> ...as long as it's being viewed with a browser that supports @font-face...
>

Like:

   - Google Chrome: version 4.249.4+
   - Mozilla Firefox: version: 3.5+
   - Apple Safari: version 3.1+
   - Microsoft Internet Explorer: version 6+

If someone using an unsupported browser visits a page that uses the Font
API, then the text is displayed using the next available font in your CSS
font stack.





>
>
> On Thu, May 20, 2010 at 2:35 PM, mdipierro 
> wrote:
>
>> http://code.google.com/webfonts/preview
>>
>
>
>
>


Re: [web2py] Re: nice slides on postgresql vs nodb

2010-05-21 Thread Albert Abril
Haha! I enjoy with this jokes in tech slides, they're amusing!

On Fri, May 21, 2010 at 3:02 PM, Timothy Farrell  wrote:

> Developers running with scissors!! LOL!!!
>
>
> On 5/20/2010 2:12 PM, szimszon wrote:
>
>> Nice
>>
>> On máj. 20, 19:52, mdipierro  wrote:
>>
>>
>>> http://www.scribd.com/doc/31669670/PostgreSQL-and-NoSQL
>>>
>>>
>>
>


Re: [web2py] Actual situation of web2py compatibility

2010-05-22 Thread Albert Abril
Hola GoldenBoy!

If there's errors you can send here for helping you.
However is suggested to run web2py with python 2.5. Even, with 2.6 would run
well too.

You can read about web2py and python versions here:
http://groups.google.com/group/web2py/browse_thread/thread/c7846ff355287205



On Sat, May 22, 2010 at 10:33 AM, GoldenTiger wrote:

> I have found a lot of contradictorius information about Web2Py
> compatibility along internet, due to changes in diferent version, I
> suposse
>
> I am trying to installing web2py at Hostgator without sucess , with
> Python 2.4.3
> Sometimes Hostgator Support say NO it is not compatible at shared
> hosting, another times they say me YES it is compatible
>
> Anyone could install it at a hostgator ?
>
>
> Please I would like to know actual information:
>
> 1- Is there any stable version supporting Python 2.4 actually?  ( May
> 22th 2010 )
>
> 2- Any extra dependencies necessary?
>
> 3- About performance on GAE, is it better or equal than shared
> hosting ?
>
> Thanks !
>


Re: [web2py] Re: monetize web2py anybody?

2010-05-24 Thread Albert Abril
I am interested too.
Still learning daily a bit more.
I'm planning to do a dental clinic management, but had a lot of work to do.

Regards.

On Mon, May 24, 2010 at 1:31 PM, Richard  wrote:

> I am interested, and glad you brought this up again:
> http://groups.google.com/group/web2py/browse_thread/thread/226863714adbb7cb
>
>
>
> On May 24, 9:18 am, mdipierro  wrote:
> > I have some problems:
> >
> > 1) people ask me to contribute to more projects that I can handle.
> > 2) I am good at kicking off a project (20% of the work) but I am not
> > the best person to bring it to production (the other 80%) of the work.
> > 3) I want to delegate some of these projects to users I trust. I need
> > to better keep track of you, the users, your skills and interests.
> >
> > You and I have some problems in common:
> > 1)  you are an individual or you own a small consulting company and
> > you find hard to compete for large projects
> > 2) you want to use web2py but you need to sell web2py before you can
> > sell yoru services.
> > 3) you need legal help (sample non-disclosure agreement, sample
> > contracts, etc.)
> > 4) for large projects you need to find people who can help you with
> > development (you man need a designer, a coder, a system administrator,
> > a GAE expert, etc).
> > 5) you want somebody else to handle advertising for you
> >
> > I want to help. I want to help you find development jobs, network, and
> > compete for larger projects by providing some assistance.
> >
> > I am about to create something like an association of web2py
> > professionals with a portal that provides web sites for members,
> > repository of legal forms, job posting, progress tracking, feedback
> > forms, etc. Here is the basic idea: we do not advertise web2py, we
> > advertise the association and its members. you find a client? you keep
> > all the money. You want to offer your client long term support or code
> > review? the association will sell that to the client directly
> > directly. You want to be listed as a member? Follow a code of conduct
> > (basically use approved tools and ask your clients to review your work
> > publicly). You already have a consulting company or an employer? You
> > can have the company listed as an associate under some conditions.
> >
> > We can turn our group into a large international consulting
> > organization overnight. There would be no contract between the
> > association and you other than a code of conduct that you will have to
> > follow to be listed and that I am about to wrote. You can continue to
> > work as an individual or with your existing company. The association
> > will just help when you need help.
> >
> > The association may also partner with some member to provide venture
> > capital in the form of code development (and perhaps money but not
> > immediately) for specific projects submitted to the association, in
> > exchange of shares.
> >
> > I have already incorporated to do this. This will be independent and
> > complementary form web2py itself and web2py would not be the only tool
> > in the association approved toolkit.
> >
> > For now the toolkit will include: web2py, ubuntu, postgresql, jquery,
> > and google app engine. You as an individual or a company can provide
> > services based on other tools but the association will endorse these
> > tools because we can easily find people skilled in them and you, as a
> > member, will be required to endorse these tools as good tools and
> > demonstrate your skills in some of them (not all of them).
> >
> > web2py is a tool. We will all outlive web2py. But we have created
> > something important here. A community of skilled professional that
> > share some experience. I want to see this grow with web2py and beyond
> > web2py later. I want to see us compete with large consulting
> > companies. I want to do it using a new business model in which there
> > are no shareholders to take a cut of your work since they would not be
> > providing any means of production to you (you already own a laptop and
> > that is your office), yet I want to provide the other benefits that a
> > large corporation can offer (a single image, consistency,
> > reliability).
> >
> > Not sure if there should be an admission criteria. I could use your
> > feedback about this.
> >
> > Comments? Thought? You do not have to commit to anything now but who
> > is interested?
> >
> > Massimo
>


Re: [web2py] Moving apps outside /applications

2010-05-27 Thread Albert Abril
What I do is:

  · I have my ~/dev/mywebapp
  · I have my /var/www/site/web2py/applications/mywebapp

  · init a mercurial repositories in each one

  · Sync one with other with mercurial.

With this, I have my code versioned.


[web2py] Installing postreSQL and psycopg2 in Mac osx SnowLeopard

2010-06-03 Thread Albert Abril
In theory, installing psycopg2 to connect with a PostreSQL database, would
be so easy as:
easy_install psycopg2

But in the default configuration of Mac Os X snowleopard 10.6 seems that we
get some errors.
This is an attempt to help to config you web2py with PostreSQL database and
psycopg2 connection plugin.

First, I installed PostreSQL from here:
http://www.enterprisedb.com/products/pgdownload.do#osx

Now, is where we should run easy_install, but seems that in default config
makes errors (as it did with me).

Well, I downloaded psycopg2 version: 2.2.1 from here:
http://initd.org/pub/software/psycopg/

So, I extracted the tar.gz

> tar zxvf psycopg2-2.2.1.tar.gz
>

And edited the setup.cfg in ( ./psycopg2-2.2.1/setup.cfg )
As said in the alternative section of [1], I added the line, with the path
to pg_config of PostreSQL installed.

> pg_config=/Library/PostgreSQL/8.4/bin/pg_config
>

Now, we're supposed to be able to use psycopg2, but still doing errors.
I found the fix in [2], we should change the python of snowleopard
installed, from 64bit version to 32bit version.
Here's the command:

> defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
>


Now, we can test that everything is going OK,
I'm running web2py source version.

I expect this could be useful for someone.

Again, sorry for my english.
Regards from Spain.

References:
[1] http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/
[2]
http://benkreeger.com/post/312281790/snow-leopards-python-26-site-packages


[web2py] web2py_ajax.html and mootools

2010-06-16 Thread Albert Abril
Hi everybody!

I'm wondering if is someone using mootools with web2py. If yes, could you
report your experiences?

For what I understood:
· Web2py welcome applications uses jquery.
· Any js library could be used with web2py.
· web2py_ajax.html is connecting some response.* at the controllers with
jquery actions ( like response.flash with the popup notifier )

If we want to use, for example, "response.flash" with mootools we should
reconfigure a mootools version of web2py_ajax.html.
Am I correct?

Regards!


[web2py] Re: web2py_ajax.html and mootools

2010-06-18 Thread Albert Abril
No one knows?


On Thu, Jun 17, 2010 at 3:14 AM, Albert Abril wrote:

> Hi everybody!
>
> I'm wondering if is someone using mootools with web2py. If yes, could you
> report your experiences?
>
> For what I understood:
> · Web2py welcome applications uses jquery.
> · Any js library could be used with web2py.
> · web2py_ajax.html is connecting some response.* at the controllers with
> jquery actions ( like response.flash with the popup notifier )
>
> If we want to use, for example, "response.flash" with mootools we should
> reconfigure a mootools version of web2py_ajax.html.
> Am I correct?
>
> Regards!
>


Re: [web2py] Web2py Application Exhibition

2010-06-25 Thread Albert Abril
Nice :)

Who's behind this challenge?
I meant, who wanna judge? pay? etc.

Thanks in advance.

On Fri, Jun 25, 2010 at 10:28 AM, NetAdmin  wrote:

> Web2py Application Exhibition
>
>
> Do you have a Web2py app that you'd like to show the world?
> If so, you may be interested in the Web2py Application Exhibition.
>
> The WAE is a way to...
> 1. Demonstrate what can be done with Web2py.
> 2. Share and learn about useful web2py, python, Javascript, jQuery
> etc. techniques.
> 3. Earn some money toward that new  you've been craving.
>
> Projects will be judged in the following areas.
>
> Ease of use
> Usefulness
> Visual Appeal
>
> The Rules
> 1. Applications must be submitted no later than July 30, 2010
> 2. Source must be included with your submissions.
> 3. If the application is written by a team, Massimo can NOT be part of
> the team.
> 4. After a 2 week review period, on August 15, 2010, the winners will
> be
>   announced on the web2py-users list.
> 5. The 1st place winner will receive $100 US Dollars, 2nd place will
> receive $50
> 6. You must enjoy using Web2py!
>
> Massimo is not affiliated with this exhibition, ( maybe he'll help
> judge if I can twist his arm )
> so, if you have any questions or comments, I can be contacted at
> mr.netad...@gmail.com
>


Re: [web2py] Re: OAuth and Web2Py Tutorial

2010-06-30 Thread Albert Abril
Nice :)

In the article you used python-oauth2.

As an alternative, if you want to use it with twitter, you can use
tweepy. It adds client functions.
http://joshthecoder.github.com/tweepy/docs/index.html


Regards!

On Tue, Jun 22, 2010 at 10:24 AM, Mathieu Clabaut  wrote:

> Nice..
> Thank you for sharing!
>
>
> On Mon, Jun 21, 2010 at 18:45, mdipierro  wrote:
>
>> +1
>>
>> On Jun 21, 10:44 am, Doug Warren  wrote:
>> > I wrote a small tutorial on how to use OAuth with web2py by linking a
>> > session with a Twitter account.  A future update will include
>> > embedding the access token with auth and creating an oauth
>> > login_method class.  It can be found athttp://
>> dougwarren.org/2010/06/oauth-and-web2py-part-1/
>
>
>


Re: [web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-07-07 Thread Albert Abril
I should say that the template used (seen in the video) is very pretty.

On Wed, Jul 7, 2010 at 7:35 PM, mdipierro  wrote:

> The google code repository is corrupted. There are lots of files that
> do not belong there I will close it and open a new one later
> today. Let's agree on a new name.
>
> On 7 Lug, 12:31, mdipierro  wrote:
> > http://vimeo.com/13154869
> >
> > On 7 Lug, 07:27, mdipierro  wrote:
> >
> > > # Preamble
> >
> > > As you know T2 and T3 are deprecated. Some time ago I started a
> > > reimplementation of T3 called cube9. I got stuck. I now re-factored it
> > > completely
> >
> > > -
> > >http://code.google.com/p/cube9/(requiresweb2py trunk)
> > > -
> >
> > > It uses markmin:
> >
> > > -
> > >http://web2py.com/examples/static/markmin.html
> > > -
> >
> > > cube9 is not completely finished by it works and it already much much
> > > better than T2/T3.
> >
> > > # What is cube9?
> >
> > > Cube 9 is a possible replacement for the welcome app. It is identical
> > > to welcome except that
> >
> > > - has a different layout
> > > - contains a plugin called plugin_wiki (a plugin on steroids)
> > > - use a JS menu
> >
> > > ## What is plugin_wiki?
> >
> > > Plugin_wiki allows a developed (auth.user_id==1 or anybody member of
> > > group 'editor') to create dynamic pages on the fly by visiting
> >
> > > ``http://127.0.0.1:8000/cube9/plugin_wiki/page/my-new-page-slug``
> >
> > > In fact you do not need cube9 to run plugin_wiki, you can use it for
> > > any web2py app. You can use it to add help pages. You can use to allow
> > > your users to edit pages.
> >
> > > Pages are edited using markmin (via a modified markitup JS editor to
> > > support markmin).
> > > This email is written using markmin syntax.
> >
> > > ## Why plugin_wiki is a plugin on steroids?
> >
> > > Because it includes under one name (plugin_wiki) other plugins as
> > > embeddable widgets (mediaplyer, comments, tags, multiselect, and more)
> > > and there is a way to access them using the markmin  syntax.
> >
> > > ## A first example
> >
> > > For example to include a youtube video in a page you do
> >
> > > ``
> > > name: youtube
> > > code: x1w8hKTJ2Co
> > > ``:widget
> >
> > > - The double reversed quotes tell markmin to deal with content in a
> > > special way.
> > > - The :widget tells plugin_wiki to override default behavior and treat
> > > this as an embedded widget
> > > - the content is treated as parameters (youtube being the name of the
> > > widget and x1w8hKTJ2Co being the name of the youtube video you want to
> > > embed).
> >
> > > There are MANY widgets you can already embed.
> >
> > > ## More examples
> >
> > > ### Tagging
> >
> > > ``
> > > name: tags
> > > ``:widget
> >
> > > ### jqGrid list users
> >
> > > ``
> > > name: jqgrid
> > > table: auth_user
> > > ``:widget
> >
> > > ### Enbedding a form
> >
> > > ``
> > > name: create
> > > table: auth_user
> > > ``:widget
> >
> > > ### Embedding template code
> >
> > > ``
> > > counting... {{for i in range(10):}}{{=i}}{{pass}}
> > > ``:template
> >
> > > ## Inner workings
> >
> > > For a list of widgets look into the static methods of
> > > PluginWikiWidgets in models/plugin_wiki.py. The arguments of the
> > > methods translate into variables. For example
> >
> > > ``
> > > class PluginWikiWidgets: # in models/plugin_wiki
> > > @staticmethod
> > > def abd(x,y=6): 
> > > ``:code_python
> >
> > > is called by
> >
> > > ``
> > > name: abc
> > > x=5
> > > ``:widget
> >
> > > (y is optional because y has a default, 6).
> >
> > > ### List of Widgets
> >
> > > Here is a list of widgets as of today:
> >
> > > ``
> > > def read(table,record_id=None): ...
> > > def
> > >
> create(table,message='',next='',readonly_fields='',hidden_fields='',default_fields=''):
> ...
> > > def
> > > update(table,record_id='',message='',next='',readonly_fields='',
> > >  hidden_fields='',default_fields=''): ...
> > > def select(table,query_field='',query_value='',fields=''): ...
> > > def search(table,fields=''): ...
> > > def jqgrid(table,fieldname=None,fieldvalue=None,col_widths='',
> >
> > > _id=None,fields='',col_width=80,width=700,height=300): ...
> > > def pie_chart(data,names,width=300,height=150,align='center'): ...
> > > def bar_chart(data,names,width=300,height=150,align='center'): ...
> > > def youtube(code,width=400,height=250): ...
> > > def vimeo(code,width=400,height=250): ...
> > > def mediaplayer(src,width=400,height=250): ...
> > > def comments(table='None',record_id=None): ...
> > > def tags(table='None',record_id=None): ...
> > > def tag_cloud(): ...
> > > ``:code_python
> >
> > > ### Global variables
> >
> > > there are two important globals variables:
> >
> > > + plugin_wiki_editor = True # or false to disable the wiki
> > > + plugin_wiki_level = 3 # for everything, 2 for wiki+widgets, 1 for
> > > normal wiki (no code, widgets)
> >
> > > ## Conclusions:
> >
> > > 

Re: [web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-07-07 Thread Albert Abril
Same as Kenneth
I vote +1 cube2py and Cube^2 +1

On Wed, Jul 7, 2010 at 10:31 PM, Kenneth wrote:

> I vote +1 cube2py and Cube^2 +1
>
> Kenneth
>
>


Re: [web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-07-09 Thread Albert Abril
I thought about the idea of making a frontend (i.e. in the web admin) to
edit routes.py and make more customizable the urls.
But don't know how implement it.



On Fri, Jul 9, 2010 at 12:48 PM, mdipierro  wrote:

> Please feel free to propose for new features. That was exactly the
> intention.
>
>
> On 9 Lug, 03:02, aure  wrote:
> > Great news! Thanks for the work Massimo!
> >
> > Being new to both, I myself still hesitate for my project between
> > choosing a CMS and struggle with the programming vs. choosing web2by
> > and struggle with all the things which come "for free" in a CMS... And
> > Cube2py starts to bridge the gap in some ways :-)
> >
> > I am sure that having these new features will bring more people to
> > web2py.
> >
> > Aurelien
> >
> > On Jul 9, 12:20 am, Jonathan Lundell  wrote:
> >
> > > On Jul 7, 2010, at 3:47 PM, mdipierro wrote:
> >
> > > > I do not have a strong opposition and I see the advantages in terms
> of
> > > > notation but I have two problems:
> >
> > > I'm tied up today, so just a quick note. I understand and generally
> agree with your caveats. I have a couple of thoughts on the subject that
> I'll come back with.
> >
> > > > The page:slug notation is handled by plugin_wiki, not by markmin.
> > > > markmin just treats url, #anchor, url#anchor, page:slug all in the
> > > > same way. plugin_wiki replaces the page:.. with /app/plugin_wiki/
> > > > page/ after markmin has done its job.
> > > > This decoupling was intentional to allow markmin to work without
> > > > web2py and without plugin_wiki conventions.
> > > > Your first suggestion would introduce coupling. Moreover it would
> > > > provide a shortcut that encourage users to display the slug as text
> of
> > > > the link. I am not convinced this is a good idea.
> >
> > > > Massimo
> >
> > > > On 7 Lug, 17:24, Jonathan Lundell  wrote:
> > > >> On Jul 7, 2010, at 3:14 PM, mdipierro wrote:
> >
> > > >>> Right now you can do links with
> >
> > > >>> url
> > > >>> [[name url]]
> > > >>> [[name #anchor]]
> > > >>> [[name url#anchor]]
> > > >>> [[name page:slug]]
> >
> > > >>> and define an anchor with
> >
> > > >>> [[anchor]]
> >
> > > >>> If I understand your suggestions:
> > > >>> 1) also allow
> > > >>> [[url]]
> > > >>> [[url#anchor]]
> > > >>> [[#anchor]]
> > > >>> [[page:slug]]
> > > >>> to allow un-named links. Q: how can a link not have a name?
> >
> > > >> In your notation, I was thinking:
> >
> > > >> [[slug]] would imply [[slug page:slug]]
> >
> > > >> 'slug' would be used verbatim as the name, and with slug-encoding as
> the slug.
> >
> > > >> A link would always have a name; it would just be implicit. That's
> the Mediawiki convention, though they use a vertical bar to separate an
> optional name from the slug.
> >
> > > >>> 2) use [[=anchor]] to define an anchor to avoid conflict with 1.
> >
> > > >>> if we do 1, we must do 2 but I would prefer [[!anchor]] then.
> >
> > > >> Sure.
> >
> > > >> Or [name:anchor], which corresponds to the html that it generates.
>


Re: [web2py] Re: Step-by-step tutorial on getting Cube2py up and running?

2010-07-12 Thread Albert Abril
mm.. just a typo in the url example -> examples :)
the rest all ok.

regards!

http://www.web2py.com/examples/static/nightly/web2py_src.zip

On Mon, Jul 12, 2010 at 10:48 AM, mdipierro  wrote:

> curl http://web2py.com/example/static/nightly/web2py_src.zip


Re: [web2py] Re: openwysiwyg?

2010-07-13 Thread Albert Abril
Me neither.

On Tue, Jul 13, 2010 at 11:07 PM, Pepe  wrote:

> never used it.
>
> On Jul 13, 4:55 pm, Chris S  wrote:
> > Ditto, never used it
> >
> > On Jul 13, 3:50 pm, Bruno Rocha  wrote:
> >
> >
> >
> > > Never used it
> >
> > > 2010/7/13 MikeEllis :
> >
> > > > FWIW, openwysiwyg doesn't work in Chrome.
> > > > Mike
> >
> > > > On Jul 13, 1:19 pm, Jean-Guy  wrote:
> > > >> Never used it!
> >
> > > >> Jonhy
> >
> > > >> On 2010-07-13 13:02, mdipierro wrote:
> >
> > > >> > on a view [htmledit]. Do you use it?
> >
> > > --
> >
> > >http://rochacbruno.com.br
>


[web2py] murder, bittorrent on twitter

2010-07-17 Thread Albert Abril
Here was talked about descentralized servers.

Ok, there's news about it:
*Large scale web-services such as Twitter need thousands of servers to
manage the flow of updates sent out by their millions of users. As a result,
keeping all these servers updated with the latest data can be time and
resource intensive. To improve the deployment of files across their servers,
Twitter recently called in the help of BitTorrent. *
http://torrentfreak.com/bittorrent-makes-twitters-server-deployment-75-faster-100716/

Made with the BitTornado library. Python in action.
http://github.com/lg/murder/tree/master/dist/


Re: [web2py] Interesting - bpython

2010-07-23 Thread Albert Abril
Nice. I didn't know it.
Seems a few better than ipython.

On Fri, Jul 23, 2010 at 2:09 PM, David Marko  wrote:

> http://bpython-interpreter.org/


Re: [web2py] Re: Is there a way how to specifiy, which controller act as default?

2010-08-06 Thread Albert Abril
@mr.freeze You can do it with routes.py . Why another config file?

On Fri, Aug 6, 2010 at 6:40 PM, Phyo Arkar  wrote:

> i voted this too.
>
> I just dont like the controller named default and i want it different
> on each apps.
>
> On 8/6/10, mr.freeze  wrote:
> > Massimo, why not make the default application,controller and function
> > configurable in an external file like options.py or
> > parameters_.py?
> >
> > On Aug 6, 9:08 am, mdipierro  wrote:
> >> No. But you can remap into a different controller using routes.py
> >>
> >> routes_in = [
> >> ('/myapp', '/myapp/non_default/index'),
> >> ]
> >>
> >> On Aug 6, 9:05 am, David Marko  wrote:
> >>
> >> > Is there a way how to specifiy, which controller act as default? I
> >> > mean specify different controller than with name 'default', which name
> >> > is a bit strange (at least for non-english speaking countries.)
> >>
> >> > David
>


Re: [web2py] Re: new features and new book sections/chapters

2010-08-06 Thread Albert Abril
*PS: you might want to hire a top-notch web designer to turn the web2py
pages into something a bit trendier and sexier. Your web design skills
are clearly superior to mine, but sometimes you just gotta hand it to
the pros.*
*
*
*   *I agree with that.
   I'm disposed to make a donation if we could recollect to pay a designer
to make it sexier.
*
*
On Fri, Aug 6, 2010 at 8:29 PM, olifante  wrote:

> Web2py is getting more impressive by the day, and it's great that the
> documentation is even better now. Unfortunately, the PDF on sale at
> Lulu.com is apparently still the old 2nd edition. Is there any way to
> get or buy a PDF of the current draft of the 3rd edition?
>
> The tech book industry is increasingly making draft versions of books
> available for comment and for purchase as soon as possible, e.g.
>
> PragProg Beta Books:
> http://pragprog.com/frequently-asked-questions/beta-books
> O'Reilly Open Feedback Publishing System:
> http://labs.oreilly.com/ofps.html
> Manning Early Access Program: http://www.manning.com/about/meap.html
>
> Why not do the same with the web2py book, instead of forcing eager
> buyers to wait until the final version of the 3rd edition is
> finished?
>
> Also, many people now prefer to do all their technical reading in
> ebook format, so making the book available in .mobi and .epub formats
> as well as in pdf would be a smart move.
>
> Finally, even though I personally can see the value of paying $12.50
> for the current version of the web2py book (if it was available, which
> is not the case), many people can't or won't. I really feel that the
> fact that the PDF version of the book isn't available for free hampers
> adoption of web2py. Good as web2py is, the truth is that Django
> dominates in terms of users and mindshare in the Python community. If
> you want to change that, giving the book away couldn't hurt.
>
> Web2py is obviously a labour of love, and I can't imagine that you get
> more than meager earnings from the PDF sales at Lulu.com. Obviously,
> everybody has to pay the bills, but you can probably earn more from
> consulting work if web2py became more popular than you ever will from
> the PDF sales.
>
> Thanks for all your hard work on web2py!
>
> Regards,
>
> --Tiago Henriques
>
> PS: you might want to hire a top-notch web designer to turn the web2py
> pages into something a bit trendier and sexier. Your web design skills
> are clearly superior to mine, but sometimes you just gotta hand it to
> the pros.


Re: [web2py] Re: On the online book

2010-02-14 Thread Albert Abril
I bought the pdf two months ago.
Now i contributted with 5$, isn't so much, but i'm still studying, there's
my contributtion to the cause.

I aprreciate the effort you're doing on that.

regards!



On Sun, Feb 14, 2010 at 9:15 AM, mdipierro  wrote:

> I really really appreciate this. Somehow the chipin widget is not
> updated in real time but I do get the notifications from paypal.
>
> Massimo
>
> On Feb 13, 5:31 pm, villas  wrote:
> > On Feb 13, 11:14 pm, Richard  wrote:
> >
> > > I had no idea you were getting that much (7%) from the book, so that
> > > was very noble to release it. Donated $50.
> > > Richard
> >
> > Yes Richard -- good call!  I've chipped in $50 too.
> > I can't tell you how much I support the decision.  It will be a great
> > success for our community, and I hope the donations will compensate
> > accordingly.
> > Kind regards,
> > --David
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] Re: they are copying us....

2010-02-16 Thread Albert Abril
knowing the efforts that massimo did (and is doing) with web2py, almost
keepin it open, i got it as an intented joke.

of course is good taking ideas from here and from there, and makes
opensource better as possible.
this is why FLOSS rocks!

regards!

On Tue, Feb 16, 2010 at 11:17 AM, Kuba Kucharski
wrote:

> lol, I understood "copying us" was clearly a semi-joke.. a sarcasm..
> "why so serious, son?" :))
>
>
> --
> Kuba
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] Re: they are copying us....

2010-02-16 Thread Albert Abril
(where i told **almost** i would say **especially**, i confused, sorry about
my english)

On Tue, Feb 16, 2010 at 2:07 PM, Albert Abril wrote:

> knowing the efforts that massimo did (and is doing) with web2py, almost
> keepin it open, i got it as an intented joke.
>
> of course is good taking ideas from here and from there, and makes
> opensource better as possible.
> this is why FLOSS rocks!
>
> regards!
>
>
> On Tue, Feb 16, 2010 at 11:17 AM, Kuba Kucharski  > wrote:
>
>> lol, I understood "copying us" was clearly a semi-joke.. a sarcasm..
>> "why so serious, son?" :))
>>
>>
>> --
>> Kuba
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To post to this group, send email to web...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> web2py+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/web2py?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] Re: wordpress

2010-03-03 Thread Albert Abril
With all the respects, i always thought that the admin interface could be
better, it's because i think this is a great idea. +1 for wordpress-like
css.

On Wed, Mar 3, 2010 at 7:53 PM, mr.freeze  wrote:

> + 1. Admin is mighty but needs some makeup.
>
> On Mar 3, 10:50 am, "Giovanni Giorgi"  wrote:
> > I will start doing some tests on a demo app,
> >  then I will send it to you when ready.
> > I plan to work on it on the weekend.
> > Because Wordpress CSS is quite complex I will start with a prototype.
> > Ciao ciao :)
> >
> >
> >
> > On Wed, March 3, 2010 17:27, mdipierro wrote:
> > > You should be able to do this by just changing the views, css and
> > > static files in web2py admin. You can just zip the admin folder and I
> > > will check for differences.
> >
> > > On Mar 3, 10:07 am, "Giovanni Giorgi"  wrote:
> > >> I am working on an application and I need to change the CSS.
> > >> I can grab the Wordpress CSS and adapt it... :)
> > >> After I finished the work, how do you like to send you the changes?
> >
> > >> On Wed, March 3, 2010 17:04, mdipierro wrote:
> > >> > I really like the look and feel of the management interface of
> > >> > wordpress (white/black/gray with rounder corner and js
> effects/menu).
> > >> > It would be nice to use their CSS and images in web2py admin. What
> do
> > >> > you think? Any volunteers to work on it?
> >
> > >> > --
> > >> > You received this message because you are subscribed to the Google
> > >> Groups
> > >> > "web2py-users" group.
> > >> > To post to this group, send email to web...@googlegroups.com.
> > >> > To unsubscribe from this group, send email to
> > >> > web2py+unsubscr...@googlegroups.com
> .
> > >> > For more options, visit this group at
> > >> >http://groups.google.com/group/web2py?hl=en.
> >
> > >> --
> > >> Team Leader
> > >> Gioorgi.com Chief Editor
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "web2py-users" group.
> > > To post to this group, send email to web...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > web2py+unsubscr...@googlegroups.com
> .
> > > For more options, visit this group at
> > >http://groups.google.com/group/web2py?hl=en.
> >
> > --
> > Team Leader
> > Gioorgi.com Chief Editor
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] Re: did you know?

2010-03-04 Thread Albert Abril
I like this blog, it's a lot useful for people like me that still
discovering web2py.

Just one thing: i supose at title that *leaner* is *learner*, ( i'm not
english ).

Regards.

On Thu, Mar 4, 2010 at 5:06 PM, Thadeus Burgess wrote:

> This reminds me of starship troopers... "Did you know?"
> -Thadeus
>
>
>
>
>
> On Thu, Mar 4, 2010 at 9:20 AM, DenesL  wrote:
> > +1
> >
> > On Mar 4, 10:14 am, Thadeus Burgess  wrote:
> >> Nice!
> >> -Thadeus
> >>
> >> On Thu, Mar 4, 2010 at 9:08 AM, mdipierro 
> wrote:
> >> >http://gluonframework.wordpress.com/2010/03/04/web2py-learner/
> >>
> >> > --
> >> > You received this message because you are subscribed to the Google
> Groups "web2py-users" group.
> >> > To post to this group, send email to web...@googlegroups.com.
> >> > To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> >> > For more options, visit this group athttp://
> groups.google.com/group/web2py?hl=en.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> > To post to this group, send email to web...@googlegroups.com.
> > To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> > For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] Re: More Questions About Compatibility

2010-03-08 Thread Albert Abril
I know it could sounds cruel, but.. try to leave windows  [?]

On Mon, Mar 8, 2010 at 3:49 PM, Magnitus  wrote:

> > LOL.  That ambiguous phrasing may be enough to tip Graham Dumpleton
> > over the edge!
>
> Yes, well, unless I'm using the language of mathematics, I'm not the
> best of communicator for technical stuff. I apologize.
>
> > Others have also spoken enthusiastically about Lighttpd / Nginx in
> > terms of speed,  and a smaller memory footprint too, so try searching
> > the group. See these for example:
>
> Problem is that I'm developing for windows.
>
> I don't have anything against Linux, but learning how to use it in
> most of the gory details (so that I can run a server on it) would be
> too much of an overhead at this point in time considering the other
> things I have to pick up (the only thing I'd pick up reasonably
> quickly are the C system calls).
>
> Nginx's window version is beta (http://nginx.org/en/docs/
> windows.html ).
>
> Cherokee's window version is broken (and will be beta for a while once
> its functional again).
>
> Lighttpd doesn't work on Windows.
>
> I'm not sure how well IIS works with anything that is not C# or VB for
> the web framework and I'm not ready to capitulate to C# just yet.
>
> I guess I'll try to figure out how to compile Apache on a newish
> rendition of windows in 64 bits a bit longer. I found some interesting
> links for that.
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

<<331.gif>>

Re: [web2py] Re: web2py beautification

2010-03-08 Thread Albert Abril
As said by villas, I think this is the principal goal:

1. A clear goal of moving from table to divs.
2. A web2py list of semantic names to name certain sections of the page.

If in 2, we take references from wordpress or some cms, it would be easier
to import templates from them.

On Sun, Mar 7, 2010 at 11:29 AM, villas  wrote:

> An example layout page I looked at had:
>
> 
> 
> 
> 
> 
> 
> 
> 
>
> Clearly it leaves much to be desired,  but maybe it would help if we
> agreed:
> 1. A clear goal of moving from table to divs.
> 2. A Web2py list of semantic names to name certain sections of the
> page.
> 3. Perhaps longer term, move forms towards fieldsets and definition
> lists (well, let's leave that for now!).
>
> If we achieved 1. and 2. we could all build layouts to a similar
> standard. I wonder whether Wordpress has standard div names we could
> adopt?  Or maybe one of the other popular CMSs or frameworks which has
> lots of template writers (Joomla, Drupal).  With CSS it helps if we
> could all sing off the same 'sheet'.
>
> -David
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] Re: meeting tonight

2010-03-10 Thread Albert Abril
When you say 10pm, would you mean 22:00 h UTC / GMT ? or..
ref: http://www.timeanddate.com/library/abbreviations/timezones/

Thanks!

On Wed, Mar 10, 2010 at 6:06 PM, Thadeus Burgess wrote:

> When can we set another meeting? 10PM was a little late, but doable.
>
> -Thadeus
>
>
>
>
>
> On Wed, Mar 10, 2010 at 9:43 AM, mdipierro 
> wrote:
> > I would like to add what was NOT discussed.
> > 1) convention for a plugin to store variables in sessions
> > 2) convention for plugin-defined table names
> > 3) mechanism of hooks for plugin to register stuff with the app (for
> > example change the menu)
> >
> > Right now:
> > 1) session.plugin_.variable OR session.plugin__variable?
> > 2) db.plugin__tablename
> > while for input
> > plugins..configuration_parameter
> >
> > we have nothing about 3.
> >
> > On Mar 10, 8:20 am, mdipierro  wrote:
> >> It was late. We closed the discussion soon after you left. Thadeus
> >> will summarize what we said and we will circulate a draft proposal.
> >> The main issue was how to write plugin models so that they can be
> >> configurable and do not pollute the name space.
> >>
> >> I think the structure we agreed upon was something like this...
> >>
> >> ### in db,py
> >> plugins=PluginCentral()
> >> # configure all plugins
> >> plugins..db = db
> >>
> >> ### in models/plugin_.py
> >> def _(plugin):
> >># set default values or return error on failure, for example
> >>if not plugin.db and db: plugin.db = db
> >># you can use any local variable you want here private of _
> >>...
> >># define plugin tables
> >>plugin.db.define_table()
> >>return
> >> # instantiate the plugin by passing the config parameteres
> >> _(plugins.)
> >> # define public functions here
> >>
> >> but let us follow on the discussion and a write a better document with
> >> more examples and motivations.
> >>
> >> Massimo
> >>
> >> On Mar 10, 8:04 am, Álvaro Justen [Turicas] 
> >> wrote:
> >>
> >> > Could someone please send a short description of what was decided
> >> > yesterday? Massimo?
> >>
> >> > On Wed, Mar 10, 2010 at 10:47, Timothy Farrell 
> wrote:
> >> > > Disregard.  I see the other thread.
> >>
> >> > > On 3/10/2010 7:44 AM, Timothy Farrell wrote:
> >>
> >> > >> So for those of us who couldn't make it, what were the conclusions?
> >>
> >> > >> On 3/9/2010 8:28 PM, mr.freeze wrote:
> >>
> >> > >>> Yes - plugins, plugins, plugins!!! I'm anxious to start converting
> all
> >> > >>> of my modules to plugins once the spec is somewhat backwards
> >> > >>> compatible.
> >>
> >> > >>> On Mar 9, 8:18 pm, mdipierro  wrote:
> >>
> >> >  We have a meeting on IRC tonight at 10om central time, right?
> >>
> >> > > --
> >> > > You received this message because you are subscribed to the Google
> Groups
> >> > > "web2py-users" group.
> >> > > To post to this group, send email to web...@googlegroups.com.
> >> > > To unsubscribe from this group, send email to
> >> > > web2py+unsubscr...@googlegroups.com
> .
> >> > > For more options, visit this group at
> >> > >http://groups.google.com/group/web2py?hl=en.
> >>
> >> > --
> >> > Álvaro Justen - Turicas
> >> >  http://blog.justen.eng.br/
> >> >  21 9898-0141
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> > To post to this group, send email to web...@googlegroups.com.
> > To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> > For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] Re: web2py on hostmonster

2010-03-10 Thread Albert Abril
I need to deploy in django-europe too, what is running lighttpd and fcgi .
I'm reading the documentation, when I achieve it, I'll post here a how to.

Meanwhile, you have the info in the book:
http://web2py.com/book/default/section/11/7

regards.

On Wed, Mar 10, 2010 at 3:42 PM, Richard  wrote:

> I need to migrate a web2py app to hostmonster for a client. Any
> progress?
>
>
> On Mar 1, 1:25 pm, elffikk  wrote:
> > hi,
> >
> > I am trying to install web2py on hostmonster (fcgid) using this (how
> > to install django)http://www.hostmonsterforum.com/showthread.php?t=3100
> >
> > but ... :(
> >
> > fcgi scripts are running only from cgi-bin/ directory,
> > tried to install just cherrypy and it seems not finding a free port,
> > logs says that port 8080 is  not free
> >
> > any thoughts or help ?
> >
> > thank you all in advance
> >
> > ps:
> > - I already installed python 2.6
> > - I use fcgihandler.py renamed to fcgihandler.fcgi
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] no more cherrypy wsgiserver

2010-03-11 Thread Albert Abril
Is Rocket a port of CherryPy? Or is made from zero? isn't 0.2 an earlier
release yet?
What's the principal difference from CherryPy? cleaner code, smaller.. and
more?

I'm questioning just for info of us the users, doesn't know so much about
it.

Thanks for all.

Regatds!!

On Thu, Mar 11, 2010 at 5:19 PM, Timothy Farrell  wrote:

> The code has changed since version 0.1, Let me re-run some benchmarks.
>  I'll have time to tomorrow.
>
> For those curious, the basic difference is that Rocket handles a few
> concurrent connections as fast as wsgiserver and many concurrent connections
> much much faster.  It's also smaller, with cleaner code.
>
> -tim
>
>
> On 3/11/2010 10:08 AM, mdipierro wrote:
>
>> We moved from cherrypy wsgiserver to Rocket, by Timothy Farrell.
>>
>> I included an older version, need to include the latest one.
>>
>> It needs to be tested but let's wait I post the latest version before
>> we do so.
>>
>> Why?
>> @Tim, you made a very convincing case to me some time ago. Can you
>> share your benchmark with the rest of the users?
>>
>> Massimo
>>
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] Re: no more cherrypy wsgiserver

2010-03-11 Thread Albert Abril
well we shouln't worry a  lot about IE 5.5, no?  5.5!!

let me link this:
http://farm4.static.flickr.com/3609/3629069606_3d1a1cd8fb_b.jpg

On Thu, Mar 11, 2010 at 10:39 PM, mdipierro  wrote:

> That is good enough.
>
> Don't we all love IE? When we discover bugs in our won code we can
> think of IE and feel better about ourselves.
>
> Massimo
>
> On Mar 11, 3:14 pm, Timothy Farrell  wrote:
> > So I was testing with IE 5.5+. and I hit a bug uploading...but the bug
> > is in IE.  It kept failing on uploading very large files and I couldn't
> > figure it out.  Turns out, IE was sending this http header:
> >
> > Content-Length: -556031510
> >
> > Oops.  This is in IE 5.5 all the way to IE 8.  I suspect that anything
> > over 2 GB is overflowing the signed int.
> >
> > Anyway I'm calling the IE family good for anything under 2GB.
> >
> > -tim
> >
> > On 3/11/2010 2:25 PM, Timothy Farrell wrote:
> >
> > > That was FF 3.6 on Win7.  I'm going to try some less well behaved
> > > browsers (IE 5.5+ via IEtester) next.
> >
> > > On 3/11/2010 2:21 PM, mdipierro wrote:
> > >> Which browsers? The problem with cherrypy<  3.x was for example that
> > >> different browser treated in different ways the server delay and some
> > >> browser truncated files on download. I want to make sure that all
> > >> common browsers are tested.
> >
> > >> Massimo
> >
> > >> On Mar 11, 2:18 pm, Timothy Farrell  wrote:
> > >>> Slight correction:
> >
> > >>>  db.define_table('image',Field('upload', 'upload'))
> >
> > >>> I have successfully up- and downloaded files as large as 480MB and
> apps
> > >>> as large as 160MB (any larger apps crashed on unzipping).  In all
> cases
> > >>> I was testing over HTTPS.
> >
> > >>> -tim
> >
> > >>> On 3/11/2010 1:04 PM, mdipierro wrote:
> >
> >  Rocket 0.3.1 is IN. Please download from trunk and start testing.
> >  Use this code
> >   db.define_table('image',Field('upload'))
> >  Please test upload and download of a large files via appadmin into
> >  "image" table.
> >  Please let us know which browser you tested and whether it worked or
> >  you experience any problem.
> >  Massimo
> >  On Mar 11, 12:24 pm, Timothy Farrellwrote:
> > > 
> > >> For a production system, I'm more interested in stability than
> > >> performance. And despite the admitted arbitrariness of
> > >> version-numbering choices, it's hard to make the case to
> > >> management that moving to an 0.x server is safe.
> > >> What do *you* mean by labeling Rocket 0.x?
> > > That's a fair question. When I started, I had a certain set of
> > > features
> > > and goals that I planned to reach.  Upon finishing all of those
> > > features
> > > and goal, there would be a 1.0 release.  Since starting at least
> > > three
> > > of these goals have fallen by the wayside due to their
> > > improbability or
> > > lack of flexibility withing Python or the WSGI specification.
> > > In the end, I'll probably skip a few 0.x releases and go straight
> > > to 1.0
> > > whenever I feel that there are enough of the features I originally
> > > set
> > > out to include.
> > > Like web2py, I strive to make every announced/released version
> stable
> > > enough to include in a project.  I've been running web2py on
> > > different
> > > versions of Rocket for several months now.
> > > -tim
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



[web2py] Checking if a webserver if running web2py

2010-03-14 Thread Albert Abril
Hi!

There's some way to check to check from the browser if a web is running
web2py?
For example, Could i know if www.web2py.com is running web2py from the
browser?

Just curious.
Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] Re: Checking if a webserver if running web2py

2010-03-15 Thread Albert Abril
* I was considering re-routing all mispelled urls to a default error page*

Maybe, setting it by default, could be a secure feature.


On Mon, Mar 15, 2010 at 9:31 PM, Thadeus Burgess wrote:

> I have
>
> routes_onerror( (*/*, '/init/default/error') )
>
> the controller just brings up a search based on the requested_uri.
>
> -Thadeus
>
>
>
>
>
> On Mon, Mar 15, 2010 at 1:10 PM, Magnitus 
> wrote:
> > On Mar 14, 9:58 pm, Graham Dumpleton 
> > wrote:
> >> You can potentially also use any error page as a tell tale fingerprint
> >> if defaults are used as different frameworks are going to each have
> >> their own.
> >
> > Not only that, I find it very revelative that it states whether the
> > app is wrong, the controller is wrong or the function is wrong.
> >
> > Its good for the developper to know this, but not for the user.
> >
> > Frankly, the less the user knows about the type of server "error" he
> > caused, the happier I will be.
> >
> > I was considering re-routing all mispelled urls to a default error
> > page.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> > To post to this group, send email to web...@googlegroups.com.
> > To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> > For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] skinning web2py

2010-03-22 Thread Albert Abril
At the web of zengarden plugin [1] , the download link prints a ticket
error.
[1]: http://www.web2py.com/zengarden/default/index


Thanks for the efforts on beautification.



On Mon, Mar 22, 2010 at 8:04 PM, Massimo Di Pierro
wrote:

> http://gluonframework.wordpress.com/2010/03/22/skinning-web2py/
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] for testers

2010-03-23 Thread Albert Abril
I like to download the dev from mercurial repos, it's more comfortable.
Maybe it's because the habit.

On Mon, Mar 22, 2010 at 10:11 PM, mdipierro  wrote:

> http://web2py.com/examples/static/nightly/web2py_src.zip
> http://web2py.com/examples/static/nightly/web2py_win.zip
> http://web2py.com/examples/static/nightly/web2py_osx.zip
>
> It is not yet completely automated but I will post build them often
> from trunk.
>
> Massimo
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] web2py production deployment on vps.net (VIDEO)

2010-03-24 Thread Albert Abril
Purchased one month for testing.
I'll give my impressions, at the moments, great.

On Wed, Mar 24, 2010 at 1:51 AM, Álvaro Justen [Turicas] <
alvarojus...@gmail.com> wrote:

> On Tue, Mar 23, 2010 at 12:49, mdipierro  wrote:
> > The video:
> >
> >http://vimeo.com/10377947
> >
> > Please use this link below to sign up for vps.net.
> >
> >   http://www.vps.net/?bid=190&aid=CD3792&opt=
> >
> > If you want to use vps.net, by using the link to register you will be
> > making a zero cost donation.
>
> Cool, thanks!
>
> I'm working on some ways to deploy apps when web2py environment is
> just working on the server. Things like:
> 0- I push from my Mercurial local repo to my server
> 1- My server run all tests in my app (yes, TDD[1] and continuous
> integration[2] are very important).
> 2- If all tests returned OK it updates the app that is in production,
> do database migrations (note that we generally use migrate=False for
> production environments) etc.
>
> [1] http://en.wikipedia.org/wiki/Test-driven_development
> [2] http://en.wikipedia.org/wiki/Continuous_integration
>
> > --
> > You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> > To post to this group, send email to web...@googlegroups.com.
> > To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> > For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
> --
> Álvaro Justen - Turicas
>  http://blog.justen.eng.br/
>  21 9898-0141
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] web2py production deployment on vps.net (VIDEO)

2010-03-24 Thread Albert Abril
I don't know if it's my fault, but the 'web2py ubuntu setup' script failed
on a basic installation of ubuntu 9.10 at the vps.net

( http://web2py.googlecode.com/hg/scripts/setup-web2py-ubuntu.sh )


 * Restarting web server apache2
 * We failed to correctly shutdown apache, so we're now killing all running
apache processes. This is almost certainly suboptimal, so please make sure
your system is working as you'd expect now!
 ... waiting .Syntax error on line 6 of
/etc/apache2/sites-enabled/000-default:
Invalid command 'WSGIDaemonProcess', perhaps misspelled or defined by a
module not included in the server configuration
   ...fail!
admin password: 
done!

More info about 000-default:

r...@vps:~# cat /etc/apache2/sites-enabled/000-default

NameVirtualHost *:80
NameVirtualHost *:443


  WSGIDaemonProcess web2py user=www-data group=www-data
  WSGIProcessGroup web2py
  WSGIScriptAlias / /home/www-data/web2py/wsgihandler.py

   ()


I want to try it with cherokee too, my "native" webserver :)




On Wed, Mar 24, 2010 at 8:20 PM, Albert Abril wrote:

> Purchased one month for testing.
> I'll give my impressions, at the moments, great.
>
>
> On Wed, Mar 24, 2010 at 1:51 AM, Álvaro Justen [Turicas] <
> alvarojus...@gmail.com> wrote:
>
>> On Tue, Mar 23, 2010 at 12:49, mdipierro  wrote:
>> > The video:
>> >
>> >http://vimeo.com/10377947
>> >
>> > Please use this link below to sign up for vps.net.
>> >
>> >   http://www.vps.net/?bid=190&aid=CD3792&opt=
>> >
>> > If you want to use vps.net, by using the link to register you will be
>> > making a zero cost donation.
>>
>> Cool, thanks!
>>
>> I'm working on some ways to deploy apps when web2py environment is
>> just working on the server. Things like:
>> 0- I push from my Mercurial local repo to my server
>> 1- My server run all tests in my app (yes, TDD[1] and continuous
>> integration[2] are very important).
>> 2- If all tests returned OK it updates the app that is in production,
>> do database migrations (note that we generally use migrate=False for
>> production environments) etc.
>>
>> [1] http://en.wikipedia.org/wiki/Test-driven_development
>> [2] http://en.wikipedia.org/wiki/Continuous_integration
>>
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups "web2py-users" group.
>> > To post to this group, send email to web...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> web2py+unsubscr...@googlegroups.com
>> .
>> > For more options, visit this group at
>> http://groups.google.com/group/web2py?hl=en.
>>
>> --
>> Álvaro Justen - Turicas
>>  http://blog.justen.eng.br/
>>  21 9898-0141
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To post to this group, send email to web...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> web2py+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/web2py?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] web2py production deployment on vps.net (VIDEO)

2010-03-24 Thread Albert Abril
Worked correctly with a 8.04 LTS clean and basic installation.
Should I open a new thread about testing the script?

On Wed, Mar 24, 2010 at 8:49 PM, Albert Abril wrote:

> I don't know if it's my fault, but the 'web2py ubuntu setup' script failed
> on a basic installation of ubuntu 9.10 at the vps.net
>
> ( http://web2py.googlecode.com/hg/scripts/setup-web2py-ubuntu.sh )
>
>
>  * Restarting web server apache2
>  * We failed to correctly shutdown apache, so we're now killing all running
> apache processes. This is almost certainly suboptimal, so please make sure
> your system is working as you'd expect now!
>  ... waiting .Syntax error on line 6 of
> /etc/apache2/sites-enabled/000-default:
> Invalid command 'WSGIDaemonProcess', perhaps misspelled or defined by a
> module not included in the server configuration
>...fail!
> admin password: 
> done!
>
> More info about 000-default:
>
> r...@vps:~# cat /etc/apache2/sites-enabled/000-default
>
> NameVirtualHost *:80
> NameVirtualHost *:443
>
> 
>   WSGIDaemonProcess web2py user=www-data group=www-data
>   WSGIProcessGroup web2py
>   WSGIScriptAlias / /home/www-data/web2py/wsgihandler.py
>
>    ()
>
>
> I want to try it with cherokee too, my "native" webserver :)
>
>
>
>
>
> On Wed, Mar 24, 2010 at 8:20 PM, Albert Abril wrote:
>
>> Purchased one month for testing.
>> I'll give my impressions, at the moments, great.
>>
>>
>> On Wed, Mar 24, 2010 at 1:51 AM, Álvaro Justen [Turicas] <
>> alvarojus...@gmail.com> wrote:
>>
>>> On Tue, Mar 23, 2010 at 12:49, mdipierro 
>>> wrote:
>>> > The video:
>>> >
>>> >http://vimeo.com/10377947
>>> >
>>> > Please use this link below to sign up for vps.net.
>>> >
>>> >   http://www.vps.net/?bid=190&aid=CD3792&opt=
>>> >
>>> > If you want to use vps.net, by using the link to register you will be
>>> > making a zero cost donation.
>>>
>>> Cool, thanks!
>>>
>>> I'm working on some ways to deploy apps when web2py environment is
>>> just working on the server. Things like:
>>> 0- I push from my Mercurial local repo to my server
>>> 1- My server run all tests in my app (yes, TDD[1] and continuous
>>> integration[2] are very important).
>>> 2- If all tests returned OK it updates the app that is in production,
>>> do database migrations (note that we generally use migrate=False for
>>> production environments) etc.
>>>
>>> [1] http://en.wikipedia.org/wiki/Test-driven_development
>>> [2] http://en.wikipedia.org/wiki/Continuous_integration
>>>
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> Groups "web2py-users" group.
>>> > To post to this group, send email to web...@googlegroups.com.
>>> > To unsubscribe from this group, send email to
>>> web2py+unsubscr...@googlegroups.com
>>> .
>>> > For more options, visit this group at
>>> http://groups.google.com/group/web2py?hl=en.
>>>
>>> --
>>> Álvaro Justen - Turicas
>>>  http://blog.justen.eng.br/
>>>  21 9898-0141
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "web2py-users" group.
>>> To post to this group, send email to web...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> web2py+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/web2py?hl=en.
>>>
>>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] Re: googling web2py

2010-03-31 Thread Albert Abril
Why in Australia there's so much results compared with the average 11
results.

(PD: 11 from Spain)



On Mon, Mar 29, 2010 at 1:51 PM, Christopher Steel wrote:

> Canada with various language settings:
>
> Google Site : http://www.google.ca/
> Language: fr-ca
> Total   : 109,000
> Generated URL   :
>
> http://www.google.ca/#hl=fr&source=hp&q=web2py&meta=&aq=f&aqi=g3&aql=&oq=&gs_rfai=&fp=73cab96ac3bd1594
>
> Google Site : http://www.google.ca/
> Language: fr
> Total   : 109,000
> Generated URL   :
>
> http://www.google.ca/#hl=fr&source=hp&q=web2py&meta=&aq=f&aqi=g3&aql=&oq=&gs_rfai=&fp=73cab96ac3bd1594
>
> Google Site : http://www.google.ca/
> Language: en-ca
> Total   : 107,000
> Generated URL   :
>
> http://www.google.ca/#hl=en&source=hp&q=web2py&meta=&aq=f&aqi=g10&aql=&oq=&gs_rfai=&fp=4692a3ff86a6f392
>
> Google Site : http://www.google.ca/
> Language: en
> Total   : 107,000
> Generated URL   :
>
> http://www.google.ca/#hl=en&source=hp&q=web2py&meta=&aq=f&aqi=g10&aql=&oq=&gs_rfai=&fp=4692a3ff86a6f392
>
> Google Site : http://www.google.ca/
> Language: en-us
> Total   : 107,000
> Generated URL   :
>
> http://www.google.ca/#hl=en&source=hp&q=web2py&meta=&aq=f&aqi=g10&aql=&oq=&gs_rfai=&fp=4692a3ff86a6f392
>
> On 28 mar, 17:44, Zphen  wrote:
> > 655,000 from Australia...
> >
> > On Mar 28, 12:23 pm, mdipierro  wrote:
> >
> > > When you google "web2py" how may hits do you get? from which country?
> >
> > > When I do it from the US I get ~106,000. The number has been steady
> > > for one year. Before that is was much higher ~600,000.
> >
> > > When I did it from India the number was about ~550,000.
> >
> > > Not that the number means anything but I am interested in building
> > > some statistics from different countries.
> >
> > > Massimo
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



[web2py] Proposing a web2py Community spring.

2010-04-19 Thread Albert Abril
Hi there!

It's known that other communities like rails and django do sprints.
Not sure if here has been one time ago, but for what i read i think that no.

I would to ask here to the web2py like to do a sprint.
We could suggest subjects to focus, as:

   -  fixing bugs
   -  making improvement and new features
   -  develop apps (a better cms, twitter clones..)
   -  write howto's at your blogs

What do you think?

Regards!


-- 
Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en


Re: [web2py] Re: Proposing a web2py Community spring.

2010-04-19 Thread Albert Abril
I agree with bugs, because the naturallity of opensource, it was only as
proposal of finding bugs as others communities do.
In all the points, personally my favourite is on dev apps.
Also, I understand that write howto's, or making great layouts (design)
would be so much useful too.

Maybe something like: "web2py app dev weekend" (or some fancy tittle).

What do you think, people?



On Mon, Apr 19, 2010 at 4:28 PM, mdipierro  wrote:

> I am all for it but I would focus on
>
> >-  develop apps (a better cms, twitter clones..)
> >-  write howto's at your blogs
>
> and not on
>
> >-  fixing bugs
>
> Because bugs are normally fixed within 24 hours anyway and I would not
> want people to fix things that they think are bugs but may not be.
>
> >-  making improvement and new features
>
> Here the issue is not coding but design.
>
> Massimo
>
>
> On Apr 19, 8:14 am, Albert Abril  wrote:
> > Hi there!
> >
> > It's known that other communities like rails and django do sprints.
> > Not sure if here has been one time ago, but for what i read i think that
> no.
> >
> > I would to ask here to the web2py like to do a sprint.
> > We could suggest subjects to focus, as:
> >
> >-  fixing bugs
> >-  making improvement and new features
> >-  develop apps (a better cms, twitter clones..)
> >-  write howto's at your blogs
> >
> > What do you think?
> >
> > Regards!
> >
> > --
> > Subscription settings:
> http://groups.google.com/group/web2py/subscribe?hl=en
>


Re: [web2py] Re: Proposing a web2py Community spring.

2010-04-19 Thread Albert Abril
Of course, where i told *spring* i would mean *sprint*.
Sorry for my.. (not agile) english.

On Mon, Apr 19, 2010 at 4:39 PM, Albert Abril wrote:

> I agree with bugs, because the naturallity of opensource, it was only as
> proposal of finding bugs as others communities do.
> In all the points, personally my favourite is on dev apps.
> Also, I understand that write howto's, or making great layouts (design)
> would be so much useful too.
>
> Maybe something like: "web2py app dev weekend" (or some fancy tittle).
>
> What do you think, people?
>
>
>
>
> On Mon, Apr 19, 2010 at 4:28 PM, mdipierro wrote:
>
>> I am all for it but I would focus on
>>
>> >-  develop apps (a better cms, twitter clones..)
>> >-  write howto's at your blogs
>>
>> and not on
>>
>> >-  fixing bugs
>>
>> Because bugs are normally fixed within 24 hours anyway and I would not
>> want people to fix things that they think are bugs but may not be.
>>
>> >-  making improvement and new features
>>
>> Here the issue is not coding but design.
>>
>> Massimo
>>
>>
>> On Apr 19, 8:14 am, Albert Abril  wrote:
>> > Hi there!
>> >
>> > It's known that other communities like rails and django do sprints.
>> > Not sure if here has been one time ago, but for what i read i think that
>> no.
>> >
>> > I would to ask here to the web2py like to do a sprint.
>> > We could suggest subjects to focus, as:
>> >
>> >-  fixing bugs
>> >-  making improvement and new features
>> >-  develop apps (a better cms, twitter clones..)
>> >-  write howto's at your blogs
>> >
>> > What do you think?
>> >
>> > Regards!
>> >
>> > --
>> > Subscription settings:
>> http://groups.google.com/group/web2py/subscribe?hl=en
>>
>
>


Re: [web2py] Re: suggestions for web2py website

2010-08-16 Thread Albert Abril
I agree with Tom.
I could apport a bit donation to redesign the main website, also the logo.

Also, silly (and lovely) things like Gnome Love, or the Django Pony, makes
attract new people to know the framework.

On Mon, Aug 16, 2010 at 1:37 PM, Tom Atkins  wrote:

> +1 for a professional redesign of web2py.com - although it is a cosmetic
> thing I think you will be amazed how much more popular web2py will become
> with a stylish professional looking web2py.com.  I'm willing to contribute
> money towards this if a fund is started.
>
> I know there are many excellent sites out there... but just as an example
> (and also to give a mention to an excellent http debugging proxy) have a
> look at:
>
> http://www.charlesproxy.com
>
> I think the tabbed separation of main content sections would suit
> web2py.com very well.
>
> For code gurus who can understand web2py source it is easy to see what a
> quality framework it is.  For beginners (an important part of web2py target
> market) a quality site design makes for the feeling of a quality framework
> design.
>
>
> On 16 August 2010 08:40, Timmie  wrote:
>
>> > Talking about the layout of the example app?
>> I was talking of the www.web2py.com site.
>>
>
>


Re: [web2py] Re: Seeking advice: web2py app project hosting and licensing

2010-08-17 Thread Albert Abril
For what i know, in you wanna release it in opensource as GPL, in
webservices the most appropiate license is AfferoGPL, that assure you that
any modifications at code should be distributed again.

More info:
http://www.affero.org/oagf.html

I hope that this helps.
Regards!




On Tue, Aug 17, 2010 at 2:57 PM, Michael Ellis wrote:

> Chris, thanks very much for the detailed reply!  Based on your
> feedback, it looks like Google Code will be more than adequate for
> hosting the project.
>
> You've also helped me move a little closer to the GPL licensing
> model.  I'll probably carve out a commercial exception for unmodified
> binary distributions similar to what Massimo has done for web2py and
> also imitate his handling of third-party contributions.
>
> As to Eclipse, perhaps I'll look into it again in the future.  I know
> it's a favorite of  a number of programmers I respect.  I ran into
> problems getting it set up under Snow Leopard so for the time being
> I'll stick  with Vim + Winpdb  + Chrome DevTools, but thanks for the
> recommendation and it's good to know that Eclipse plays nicely with
> Mercurial under Google Code.
>
> Cheers,
> Mike
>
> On Aug 16, 7:43 pm, Christopher Steel  wrote:
> > Hi Mike,
> >
> > Sounds like an interesting project. We generally stick with GNU but in
> > some cases incorporate MIT stuff (and the accompanying license) when
> > it makes sense for our clients.
> >
> > The biggest deciding factor for us is our target market, but at the
> > moment we have no clients who seem to be overly concerned about this
> > issue. As a non-profit If the product we are producing is something
> > that we really want adopted commercially with no hesitation by even
> > the most picky clients (for example accessibility enhanced products)
> > then we may go with MIT in cases where one or more of our target
> > markets seems overly concerned about real or perceived issues
> > surrounding GNU.
> >
> > Other than that GNU is pretty much our standard unless of course we
> > are building on pre-existing MIT stuff.
> >
> > So in a nutshell I would say it depends on your target market and your
> > market strategy so to speak. We want to encourage as many people as
> > possible to participate in anyway they choose to including
> > contributing to the code base and feel that GNU is a way to attract
> > individuals with similar goals and strategies. MIT works for us as
> > well and satisfies some more traditional strategies as well as
> > allowing "sharing" and sometimes when we don't feel we could do a
> > better job on MIT products we incorporate them cause they are are of
> > good quality and are highly accessible (open source, no cost and/or
> > licensing fee) to everyone.
> >
> > On Google Code
> >
> > We use Google Code and we really like it. Again it is highly
> > accessible (low cost and works with most TTS) In addition Google was
> > nice enough to bump up our project limit as well due to our official
> > non-profit status just because we asked and as you mentioned it works
> > well with Mercurial, our fav versioning system.
> >
> > In addition we use Eclipse which can be configured to Google Code /
> > Mercurial ... all for no cost so we find that it is a hard combo to
> > beat although it would be nice if someone did!
> >
> > Cheers,
> >
> > Chris
> >
> > On Aug 16, 4:14 pm, Michael Ellis  wrote:
> >
> >
> >
> > > Hello all,
> >
> > > I've been working for the past few months on a group collaboration and
> > > problem solving application and am almost ready to put up a beta
> > > version on GAE for folks to experiment with.   Many thanks to Massimo
> > > and all of you regulars here for helping me up the learning curve!
> >
> > > The app is called PeerTool and is a complete re-write in Python and
> > > web2py of a commercial  app I developed in PHP about 6 years ago.  My
> > > intent is to provide a free public access site that any group may use
> > > and also to release the code open source.
> >
> > > I'll post an announcement here when the time comes, hopefully in the
> > > next week or two.  In the meantime, I'd be grateful for advice or
> > > suggestions in two areas:
> >
> > > 1.  Choosing the most appropriate license.   My primary goal is to
> > > make the product as widely useful and available as possible.  I
> > > believe it could be of benefit to almost any team, task force, board,
> > > or committee that wants to use brainstorming and collaborative
> > > evaluation of ideas (with real-time interaction!).
> >
> > > 2. Most appropriate hosting for the project source code.  I've never
> > > started a public project before and would like to know what
> > > experiences others have had with Google Code,  SourceForge, etc, --
> > > especially concerning web2py apps.  I'm leaning toward Google Code at
> > > present.  My code is already under Mercurial so it seems like that
> > > would be  a good fit.
> >
> > > Thanks in advance,
> > > Mike
>


Re: [web2py] link on browser-based editor: Bespin

2010-08-23 Thread Albert Abril
@Michele
Bespin is more an editor more web-oriented, the editor that you are linking
(Stef Editor) is more Desktop oriented.

@Timmie
Bespin is a Mozilla Labs project, it is being developed for many time, maybe
would be a great idea to integrate it in web2py.
Bespin seems a new Vim , but web-oriented :D

Regards.

On Mon, Aug 23, 2010 at 10:32 AM, Michele Comitini <
michele.comit...@gmail.com> wrote:

> seems very promising: +1
>
> what everyone think? could be used for helping with this?
>
> http://groups.google.com/group/web2py/browse_thread/thread/cacb3553eea9f0a4/7bf34ec481232e8c?lnk=gst&q=my+editor#7bf34ec481232e8c
>
>
> 2010/8/23 Timmie :
> > Hello,
> > have yoou heard about Bespin?
> >
> > https://bespin.mozillalabs.com/docs/userguide/index.html
> >
> > Maybe a good thing to add to the admin interface.
> >
> > What do you think?
> >
> > Regards.
>


Re: [web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread Albert Abril
I tested web2py_src.zip on a Mac 10.6.4 with Python 2.6.1 and runs without
problems.

On Sun, Aug 29, 2010 at 9:02 AM, mart  wrote:

> tried  few things on mac os.
>
> 1. downloaded src, tried to run on python 2.6 (i put in /Applications/
> web2py_184/) started to run, put in the password then i got a "page
> could not be found" error (I thought maybe it wants a "web2py"
> folder... so changed the folder name, same problem.
>
> 2. changed .bash_profile to point to python 2.7 (even if nor
> recommended, 1.83 worked just fine on 2.7 for me). This time got the
> 'No handlers could be found for logger "web2py"' error and returned
> the terminal to the cursor (web2py stopped immediately - which I
> believe should be expected because of the unsupported python version
> (although 1.83 worked fine)
>
> 3. then I downloaded web2py.app for mac os, ran it and got same error
> as qqsaqq
>
> I can boot up my linux box if looking for immediate results?
>
> Thanks,
> Mart :)
>
>
>
> On Aug 29, 2:02 am, qqsaqq  wrote:
> > If I run the windows version, right after klicking on web2py.exe (or
> > web2py_no_console.exe) I get this error:
> >
> > Traceback (most recent call last):
> >   File "web2py.py", line 17, in 
> >   File "gluon/widget.py", line 28, in 
> >   File "gluon/main.py", line 29, in 
> > ImportError: No module named config
> >
> > That completly prevents web2py from starting, meaning the web2py
> > process finishes immediately.
> >
> > On Aug 29, 7:20 am, mdipierro  wrote:
> >
> > >http://web2py.com/examples/static/nightly/web2py_src.ziphttp://web2py.
> ..
> >
> >


Re: [web2py] Scaffolding app with Twitter OAuth1.0a auth

2010-08-29 Thread Albert Abril
:) Thank you!

On Sun, Aug 29, 2010 at 1:45 AM, Michele Comitini <
michele.comit...@gmail.com> wrote:

> Hello all,
>
> I've uploaded a scaffolding app as example of authentication with
> twitter oauth.  You can find source code here:
>
>
> https://code.google.com/r/michelecomitini-facebookaccess/source/browse/#hg/applications/helloTwitter
>
> Or you can clone the repository locally:
> https://code.google.com/r/michelecomitini-facebookaccess/source/checkout
>
> as usual it is also on GAE for testing:
> http://grafbook.appspot.com/helloTwitter
>
> Please enjoy and send feedback.
>
> tnx
> michele
>


Re: [web2py] Scaffolding app with Twitter OAuth1.0a auth

2010-08-29 Thread Albert Abril
Just a question: what do you use for post a tweet, read statuses... ?
Thanks in advance.

On Sun, Aug 29, 2010 at 12:39 PM, Albert Abril wrote:

> :) Thank you!
>
>
> On Sun, Aug 29, 2010 at 1:45 AM, Michele Comitini <
> michele.comit...@gmail.com> wrote:
>
>> Hello all,
>>
>> I've uploaded a scaffolding app as example of authentication with
>> twitter oauth.  You can find source code here:
>>
>>
>> https://code.google.com/r/michelecomitini-facebookaccess/source/browse/#hg/applications/helloTwitter
>>
>> Or you can clone the repository locally:
>> https://code.google.com/r/michelecomitini-facebookaccess/source/checkout
>>
>> as usual it is also on GAE for testing:
>> http://grafbook.appspot.com/helloTwitter
>>
>> Please enjoy and send feedback.
>>
>> tnx
>> michele
>>
>
>


Re: [web2py] Re: Upload Pics with web2py

2010-09-02 Thread Albert Abril
How do you could custom a form with crud.create(db.tablename) ?

Is " db.tablename.data.readable = 'False' " the correct way.. as I read in
other posts?

Regards.

On Thu, Sep 2, 2010 at 3:51 PM, mdipierro  wrote:

> 1) your SQLFORM does not form.accepts and fields do not have default
> values (or use crud.create instead)
> 2) you have a form into another form (html does not allow it)
>
> On Sep 2, 8:45 am, Neveen Adel  wrote:
> > Hello,
> >
> > I have two tables , the first one called "member" and the second one
> > called "member_images"
> >
> > the structure as follow:
> >
> > db.define_table("member",
> >   SQLField("name", "string"),
> >   SQLField("age", "string"),
> > )
> >
> > and
> > db.define_table("member_images",
> >   SQLField("member_fk", db.member),
> >   SQLField("image1","upload" ),
> > )
> >
> > and then i wanna to in the add form to display images. so i did
> >
> >  form = SQLFORM(db.member,submit_button=T('Add'),showid = False)
> >  image_form =SQLFORM(db.member_images)
> >
> form[0].insert(26,TR(TD(B(T('image1'))),TD(image_form[0].element(_id='member_images_image1')),_id='image_id'))
> >
> > if form.accept(request.vars):
> >
> > db.member_images.insert(member_fk=form.vars.id,image1=form.vars.image1)
> >
> > but by the previous code , the pic saved in the member_images as a
> > string and didn't saved into uploads folder.
> >
> > Please could anyone tell me what the problem and how to fix it ?
> >
> > Thanks in Advance
> >
> > Neveen
>


Re: [web2py] Scaffolding app with Twitter OAuth1.0a auth

2010-09-03 Thread Albert Abril
Woah! I didn't read this mail yet. So much thank you, it will help me.

By now, I'm trying to get helloTwitter running from a basic web2py install
on webfaction.
but  I'm getting an error, it couldn't load the  "twitter_oauth_data*"*

Traceback (most recent call last):
File "gluon/restricted.py", line 186, in restricted
exec ccode in environment
File
"/home/aabril/webapps/dcide4me/web2py/applications/helloTwitter/models/db.py",
line 72, in 
toa = local_import('twitter_oauth_data')
File "gluon/compileapp.py", line 243, in 
local_import_aux(name,reload,app)
File "gluon/compileapp.py", line 174, in local_import_aux
module = __import__(name)
ImportError: No module named applications.helloTwitter.modules.twitt
er_oauth_data



Obviously, I don't have any twitter_oauth_data in my modules folder.
I checked here, but neither:
https://code.google.com/r/michelecomitini-facebookaccess/source/browse/#hg/applications/helloTwitter/modules

Should I rename this?

thanks in advance.

On Mon, Aug 30, 2010 at 10:00 AM, Michele Comitini <
michele.comit...@gmail.com> wrote:

> Actually if you look on developer.twitter.com, you will find some
> library that maps the twitter REST api to
> python methods.  But I did not relay on that as it would have added
> more dependencies.
> I think that is something that you can use depending the application
> you are going to develop.
>
> Things are simple even without external libraries, look for instance
> at the get_user method in db.py, how it gets user info:
>
> http://code.google.com/r/michelecomitini-facebookaccess/source/browse/applications/helloTwitter/models/db.py#81
>
>def get_user(self):
>if self.accessToken() is not None:
>client = oauth.Client(self.consumer, self.accessToken())
>resp, content =
> client.request('http://api.twitter.com/1/account/verify_credentials.json')
>if resp['status'] != '200':
># cannot get user info. should check status
>return None
>u = json.loads(content)
>return dict(username=u['screen_name'], name=u['name'],
> registration_id=u['id'])
>
> so you build a client, make a request to a REST api url
> (http://api.twitter.com/1/account/verify_credentials.json)
>
> To post a tweet see: http://dev.twitter.com/doc/post/statuses/update
>
> in your controller you should write something like this:
>
> import oauth2 as oauth
> .
> .
> .
> @auth.requires_login()
> def sendtweet():
>  token = auth.settings.login_form.accessToken() # you can use this
> also if you prefer: token=session.access_token
>  consumer = oauth.Consumer(CLIENT_ID, CLIENT_SECRET) #<- CLIENT_ID,
> CLIENT_SECRET are defined in db.py
>  client = oauth.Client(self.consumer, token)
>  # encode the message
>  message = 'My web2py post!"
>  data=urlencode(status=message)
>  #make a post
>  resp, content =
> client.request('http://api.twitter.com/1/statuses/update.json',
> "POST", body=data)
>  if resp['status'] != '200':
>#manage the error
>return dict(message="Could not send tweet! :-( ")
>
>  return dict(message="Succesfully sent! :-)")
>
> if you call method returning some data I suggest tu use the .json
> version of it and use
> simplejson to decode it to a python dictionary (see the get_user() method
> above)
>
> hope that helps...
> mic
>
> 2010/8/30 Albert Abril :
> > Just a question: what do you use for post a tweet, read statuses... ?
> > Thanks in advance.
> >
> > On Sun, Aug 29, 2010 at 12:39 PM, Albert Abril 
> > wrote:
> >>
> >> :) Thank you!
> >>
> >> On Sun, Aug 29, 2010 at 1:45 AM, Michele Comitini
> >>  wrote:
> >>>
> >>> Hello all,
> >>>
> >>> I've uploaded a scaffolding app as example of authentication with
> >>> twitter oauth.  You can find source code here:
> >>>
> >>>
> >>>
> https://code.google.com/r/michelecomitini-facebookaccess/source/browse/#hg/applications/helloTwitter
> >>>
> >>> Or you can clone the repository locally:
> >>>
> https://code.google.com/r/michelecomitini-facebookaccess/source/checkout
> >>>
> >>> as usual it is also on GAE for testing:
> >>> http://grafbook.appspot.com/helloTwitter
> >>>
> >>> Please enjoy and send feedback.
> >>>
> >>> tnx
> >>> michele
> >>
> >
> >
>


Re: [web2py] Scaffolding app with Twitter OAuth1.0a auth

2010-09-03 Thread Albert Abril
Ok, I guess it's a file created by me defining twitter config: CLIENT_ID
CLIENT_SECRET
AUTH_URL
TOKEN_URL
ACCESS_TOKEN_URL
On Fri, Sep 3, 2010 at 9:47 AM, Albert Abril  wrote:

> Woah! I didn't read this mail yet. So much thank you, it will help me.
>
> By now, I'm trying to get helloTwitter running from a basic web2py install
> on webfaction.
> but  I'm getting an error, it couldn't load the  "twitter_oauth_data*"*
>
>  Traceback (most recent call last):
> File "gluon/restricted.py", line 186, in restricted
>  exec ccode in environment
>  File
> "/home/aabril/webapps/dcide4me/web2py/applications/helloTwitter/models/db.py"<http://admin/default/edit/helloTwitter/models/db.py>,
> line 72, in 
> toa = local_import('twitter_oauth_data')
> File "gluon/compileapp.py", line 243, in 
> local_import_aux(name,reload,app)
> File "gluon/compileapp.py", line 174, in local_import_aux
>  module = __import__(name)
> ImportError: No module named applications.helloTwitter.modules.twitt
> er_oauth_data
>
>
>
> Obviously, I don't have any twitter_oauth_data in my modules folder.
> I checked here, but neither:
>
> https://code.google.com/r/michelecomitini-facebookaccess/source/browse/#hg/applications/helloTwitter/modules
>
> Should I rename this?
>
> thanks in advance.
>
> On Mon, Aug 30, 2010 at 10:00 AM, Michele Comitini <
> michele.comit...@gmail.com> wrote:
>
>> Actually if you look on developer.twitter.com, you will find some
>> library that maps the twitter REST api to
>> python methods.  But I did not relay on that as it would have added
>> more dependencies.
>> I think that is something that you can use depending the application
>> you are going to develop.
>>
>> Things are simple even without external libraries, look for instance
>> at the get_user method in db.py, how it gets user info:
>>
>> http://code.google.com/r/michelecomitini-facebookaccess/source/browse/applications/helloTwitter/models/db.py#81
>>
>>def get_user(self):
>>if self.accessToken() is not None:
>>client = oauth.Client(self.consumer, self.accessToken())
>>resp, content =
>> client.request('http://api.twitter.com/1/account/verify_credentials.json
>> ')
>>if resp['status'] != '200':
>># cannot get user info. should check status
>>return None
>>u = json.loads(content)
>>return dict(username=u['screen_name'], name=u['name'],
>> registration_id=u['id'])
>>
>> so you build a client, make a request to a REST api url
>> (http://api.twitter.com/1/account/verify_credentials.json)
>>
>> To post a tweet see: http://dev.twitter.com/doc/post/statuses/update
>>
>> in your controller you should write something like this:
>>
>> import oauth2 as oauth
>> .
>> .
>> .
>> @auth.requires_login()
>> def sendtweet():
>>  token = auth.settings.login_form.accessToken() # you can use this
>> also if you prefer: token=session.access_token
>>  consumer = oauth.Consumer(CLIENT_ID, CLIENT_SECRET) #<- CLIENT_ID,
>> CLIENT_SECRET are defined in db.py
>>  client = oauth.Client(self.consumer, token)
>>  # encode the message
>>  message = 'My web2py post!"
>>  data=urlencode(status=message)
>>  #make a post
>>  resp, content =
>> client.request('http://api.twitter.com/1/statuses/update.json',
>> "POST", body=data)
>>  if resp['status'] != '200':
>>#manage the error
>>return dict(message="Could not send tweet! :-( ")
>>
>>  return dict(message="Succesfully sent! :-)")
>>
>> if you call method returning some data I suggest tu use the .json
>> version of it and use
>> simplejson to decode it to a python dictionary (see the get_user() method
>> above)
>>
>> hope that helps...
>> mic
>>
>> 2010/8/30 Albert Abril :
>> > Just a question: what do you use for post a tweet, read statuses... ?
>> > Thanks in advance.
>> >
>> > On Sun, Aug 29, 2010 at 12:39 PM, Albert Abril 
>> > wrote:
>> >>
>> >> :) Thank you!
>> >>
>> >> On Sun, Aug 29, 2010 at 1:45 AM, Michele Comitini
>> >>  wrote:
>> >>>
>> >>> Hello all,
>> >>>
>> >>> I've uploaded a scaffolding app as example of authentication with
>> >>> twitter oauth.  You can find source code here:
>> >>>
>> >>>
>> >>>
>> https://code.google.com/r/michelecomitini-facebookaccess/source/browse/#hg/applications/helloTwitter
>> >>>
>> >>> Or you can clone the repository locally:
>> >>>
>> https://code.google.com/r/michelecomitini-facebookaccess/source/checkout
>> >>>
>> >>> as usual it is also on GAE for testing:
>> >>> http://grafbook.appspot.com/helloTwitter
>> >>>
>> >>> Please enjoy and send feedback.
>> >>>
>> >>> tnx
>> >>> michele
>> >>
>> >
>> >
>>
>
>


Re: [web2py] Re: Scaffolding app with Twitter OAuth1.0a auth

2010-09-06 Thread Albert Abril
Hi Michelle.

Yes, As you said, I defined it in the db.py.

Now, I'm having an error importing oauth2.
I installed python-oauth2 in webfaction with 'easy_install'.
But it seems like it can't import. I'll check the env.

On Mon, Sep 6, 2010 at 12:47 PM, Michele Comitini <
michele.comit...@gmail.com> wrote:

> Hi Yannik,
>
> sorry for late answering...
>
> just go on http://developer.twitter.com and register an application.
> After that you get the CLIENT_ID and CLIENT_SECRET, TOKEN_URL and
> ACCESS_TOKEN_URL from twitter.
> define those variables in a file called twitter_oauth_data.py in
> modules dir under your application and keep the file *secret*.
> After that any user that authenticates with the application will be
> redirected to twitter and  twitter will let
> your application act on behalf of the user.  You do not have to ask
> any secret from the user!
> For more info on how twitter authenticates see http://oauth.net
>
> michele
>
> 2010/9/5 Yannick :
> > Hello Thanks for the note.
> > I was using the Simple Authentication on my application to send
> > tweets. I just noticed that twitter no longer support it.  I guess I
> > have to switch to Twitter oAuth API.
> > I was wondering because it looks like to send tweet, each user of my
> > application should get a CLIENT_ID, CLIENT_SECRET  (oauth_token and
> > oauth_token_secret). I wonder where they will get it from ? Should
> > each of them have to register my application in their twitter Account
> > to get it ?
> >
> > Thanks for your help,
> > Yannick P.
> >
> >
> > On Aug 30, 4:00 am, Michele Comitini 
> > wrote:
> >> Actually if you look on developer.twitter.com, you will find some
> >> library that maps thetwitterREST api to
> >> python methods.  But I did not relay on that as it would have added
> >> more dependencies.
> >> I think that is something that you can use depending the application
> >> you are going to develop.
> >>
> >> Things are simple even without external libraries, look for instance
> >> at the get_user method in db.py, how it gets user info:
> http://code.google.com/r/michelecomitini-facebookaccess/source/browse...
> >>
> >> def get_user(self):
> >> if self.accessToken() is not None:
> >> client =oauth.Client(self.consumer, self.accessToken())
> >> resp, content =
> >> client.request('
> http://api.twitter.com/1/account/verify_credentials.json')
> >> if resp['status'] != '200':
> >> # cannot get user info. should check status
> >> return None
> >> u = json.loads(content)
> >> return dict(username=u['screen_name'], name=u['name'],
> >> registration_id=u['id'])
> >>
> >> so you build a client, make a request to a REST api url
> >> (http://api.twitter.com/1/account/verify_credentials.json)
> >>
> >> To post a tweet see:http://dev.twitter.com/doc/post/statuses/update
> >>
> >> in your controller you should write something like this:
> >>
> >> import oauth2 asoauth
> >> .
> >> .
> >> .
> >> @auth.requires_login()
> >> def sendtweet():
> >>   token = auth.settings.login_form.accessToken() # you can use this
> >> also if you prefer: token=session.access_token
> >>   consumer =oauth.Consumer(CLIENT_ID, CLIENT_SECRET) #<- CLIENT_ID,
> >> CLIENT_SECRET are defined in db.py
> >>   client =oauth.Client(self.consumer, token)
> >>   # encode the message
> >>   message = 'My web2py post!"
> >>   data=urlencode(status=message)
> >>   #make a post
> >>   resp, content =
> >> client.request('http://api.twitter.com/1/statuses/update.json',
> >> "POST", body=data)
> >>   if resp['status'] != '200':
> >> #manage the error
> >> return dict(message="Could not send tweet! :-( ")
> >>
> >>   return dict(message="Succesfully sent! :-)")
> >>
> >> if you call method returning some data I suggest tu use the .json
> >> version of it and use
> >> simplejson to decode it to a python dictionary (see the get_user()
> method above)
> >>
> >> hope that helps...
> >> mic
> >>
> >> 2010/8/30 Albert Abril :
> >>
> >> > Just a question: what do you use for post a tweet, read statuses... ?
> >> > Thanks in advance.
> >>
> >> > On Sun, Aug 29, 2010 at 12:39 PM, Albert Abril <
> albert.ab...@gmail.com>
> >> > wrote:
> >>
> >> >> :) Thank you!
> >>
> >> >> On Sun, Aug 29, 2010 at 1:45 AM, Michele Comitini
> >> >>  wrote:
> >>
> >> >>> Hello all,
> >>
> >> >>> I've uploaded a scaffolding app as example of authentication with
> >> >>>twitteroauth.  You can find source code here:
> >>
> >> >>>
> https://code.google.com/r/michelecomitini-facebookaccess/source/brows...
> >>
> >> >>> Or you can clone the repository locally:
> >> >>>
> https://code.google.com/r/michelecomitini-facebookaccess/source/checkout
> >>
> >> >>> as usual it is also on GAE for testing:
> >> >>>http://grafbook.appspot.com/helloTwitter
> >>
> >> >>> Please enjoy and send feedback.
> >>
> >> >>> tnx
> >> >>> michele
>


Re: [web2py] Re: Scaffolding app with Twitter OAuth1.0a auth

2010-09-06 Thread Albert Abril
Better than with easy_install :)
Almost, wsgihandler.py is reading site-packages folder.

I created site-packages folder, put httplib2 and oauth2 there, restart
apache2 and now it's working.

Thanks Michelle!

On Mon, Sep 6, 2010 at 1:09 PM, Michele Comitini  wrote:

> you can try installing under site-packages in the root dir of web2py.
> I do that for running the app on GAE and it works :-)
>
> mic
>
>
> 2010/9/6 Albert Abril :
> > Hi Michelle.
> > Yes, As you said, I defined it in the db.py.
> > Now, I'm having an error importing oauth2.
> > I installed python-oauth2 in webfaction with 'easy_install'.
> > But it seems like it can't import. I'll check the env.
> > On Mon, Sep 6, 2010 at 12:47 PM, Michele Comitini
> >  wrote:
> >>
> >> Hi Yannik,
> >>
> >> sorry for late answering...
> >>
> >> just go on http://developer.twitter.com and register an application.
> >> After that you get the CLIENT_ID and CLIENT_SECRET, TOKEN_URL and
> >> ACCESS_TOKEN_URL from twitter.
> >> define those variables in a file called twitter_oauth_data.py in
> >> modules dir under your application and keep the file *secret*.
> >> After that any user that authenticates with the application will be
> >> redirected to twitter and  twitter will let
> >> your application act on behalf of the user.  You do not have to ask
> >> any secret from the user!
> >> For more info on how twitter authenticates see http://oauth.net
> >>
> >> michele
> >>
> >> 2010/9/5 Yannick :
> >> > Hello Thanks for the note.
> >> > I was using the Simple Authentication on my application to send
> >> > tweets. I just noticed that twitter no longer support it.  I guess I
> >> > have to switch to Twitter oAuth API.
> >> > I was wondering because it looks like to send tweet, each user of my
> >> > application should get a CLIENT_ID, CLIENT_SECRET  (oauth_token and
> >> > oauth_token_secret). I wonder where they will get it from ? Should
> >> > each of them have to register my application in their twitter Account
> >> > to get it ?
> >> >
> >> > Thanks for your help,
> >> > Yannick P.
> >> >
> >> >
> >> > On Aug 30, 4:00 am, Michele Comitini 
> >> > wrote:
> >> >> Actually if you look on developer.twitter.com, you will find some
> >> >> library that maps thetwitterREST api to
> >> >> python methods.  But I did not relay on that as it would have added
> >> >> more dependencies.
> >> >> I think that is something that you can use depending the application
> >> >> you are going to develop.
> >> >>
> >> >> Things are simple even without external libraries, look for instance
> >> >> at the get_user method in db.py, how it gets user
> >> >> info:
> http://code.google.com/r/michelecomitini-facebookaccess/source/browse...
> >> >>
> >> >> def get_user(self):
> >> >> if self.accessToken() is not None:
> >> >> client =oauth.Client(self.consumer, self.accessToken())
> >> >> resp, content =
> >> >>
> >> >> client.request('
> http://api.twitter.com/1/account/verify_credentials.json')
> >> >> if resp['status'] != '200':
> >> >> # cannot get user info. should check status
> >> >> return None
> >> >> u = json.loads(content)
> >> >> return dict(username=u['screen_name'], name=u['name'],
> >> >> registration_id=u['id'])
> >> >>
> >> >> so you build a client, make a request to a REST api url
> >> >> (http://api.twitter.com/1/account/verify_credentials.json)
> >> >>
> >> >> To post a tweet see:http://dev.twitter.com/doc/post/statuses/update
> >> >>
> >> >> in your controller you should write something like this:
> >> >>
> >> >> import oauth2 asoauth
> >> >> .
> >> >> .
> >> >> .
> >> >> @auth.requires_login()
> >> >> def sendtweet():
> >> >>   token = auth.settings.login_form.accessToken() # you can use this
> >> >> also if you prefer: token=session.access_token
> >> >> 

Re: [web2py] possible error & bug with oauth20 facebook documentation & logout, respectively

2010-09-13 Thread Albert Abril
So, the helloFacebook app works in trunk, and not in current yet?


On Mon, Sep 13, 2010 at 11:32 AM, Michele Comitini <
michele.comit...@gmail.com> wrote:

> Yes it is correct, in trunk you can find:
>
>def logout_url(self, next="/"):
> del self.session.token
>return next
>
>
> 2010/9/13 H. Das :
> > Hi, in the documentation for oauth20 facebook section in chapter 8,
> > the following correction should be made:
> >
> > # import required modules
> > from facebook import GraphAPI, GraphAPIError
> >
> > (the import of GraphAPIError is missing in the documentation)
> >
> > Also, i noticed that logging out when using this method doesn't work
> > properly all the time... I get redirected to a page that says 'None'.
> > I think making the following correction to a method in
> > oauth20_account.py solves that:
> >
> > def logout_url(self, next="/"):
> >return next
> >
> > Am I correct? I'm not as skilled as most of you here, so I could be
> > wrong ;-)
>


[web2py] janrain login widget error: blocked for insecure content.

2010-09-14 Thread Albert Abril
For curiosity, I tried the janrain login plugin.

I configured it, and in the 'welcome' application, clicked on login.
So, it tried to load the janrain widget, but it shows an error instead:
"This frame was blocked because it contains some insecure content"

http://box.bressol.org/Captura.png


Did I miss some config at my janrain.com account?
It's a bug?


I'm using web2py 1.84.4 (2010-09-14 03:37:24)

In applications/welcome/models/db.py , line 49:

#
## If you need to use OpenID, Facebook, MySpace, Twitter, Linkedin, etc.
## register with janrain.com, uncomment and customize following
from gluon.contrib.login_methods.rpx_account import RPXAccount
auth.settings.actions_disabled=['register','change_password','request_reset_password']
auth.settings.login_form = RPXAccount(request, api_key='BLABLABLA', domain='
BLABLA.rpxnow.com', url = "http://localhost:8000/%s/default/user/login"; %
request.application)
## other login methods are in gluon/contrib/login_methods
#

Regards


[web2py] Re: janrain login widget error: blocked for insecure content.

2010-09-14 Thread Albert Abril
Fixed.

In domain: domain='BLABLA.rpxnow.com <http://blabla.rpxnow.com/>'
You should write only the BLABLA, so... domain='BLABLA'

Regards

On Tue, Sep 14, 2010 at 11:40 PM, Albert Abril wrote:

> For curiosity, I tried the janrain login plugin.
>
> I configured it, and in the 'welcome' application, clicked on login.
> So, it tried to load the janrain widget, but it shows an error instead:
> "This frame was blocked because it contains some insecure content"
>
> http://box.bressol.org/Captura.png
>
>
> Did I miss some config at my janrain.com account?
> It's a bug?
>
>
> I'm using web2py 1.84.4 (2010-09-14 03:37:24)
>
> In applications/welcome/models/db.py , line 49:
>
> #
> ## If you need to use OpenID, Facebook, MySpace, Twitter, Linkedin, etc.
> ## register with janrain.com, uncomment and customize following
> from gluon.contrib.login_methods.rpx_account import RPXAccount
>
> auth.settings.actions_disabled=['register','change_password','request_reset_password']
> auth.settings.login_form = RPXAccount(request, api_key='BLABLABLA',
> domain='BLABLA.rpxnow.com', url = "
> http://localhost:8000/%s/default/user/login"; % request.application)
> ## other login methods are in gluon/contrib/login_methods
> #
>
> Regards
>
>


Re: [web2py] HTML5 Boilerplate

2010-09-15 Thread Albert Abril
There's also a good start this: HTML5 Starter Pack
http://sickdesigner.com/resources/HTML5-starter-pack/index.html




On Wed, Sep 15, 2010 at 9:03 PM, Michael Ellis wrote:

> Just came across this while searching for something else.  Haven't
> played with it at all yet.  Looks as though the authors have packaged
> together a fairly comprehensive set of html/css/js  techniques for
> cross-browser compatibility and good performance.
>
> Some of the techniques might be worth incorporating into layout.html.
>
> Good video here
>
>
> http://net.tutsplus.com/tutorials/html-css-techniques/the-official-guide-to-html5-boilerplate/
>
> Main site is
>
> http://html5boilerplate.com/
>
> The video is also at the bottom of the page at the main site.
>
> Cheers,
> Mike
>
>
>
>


Re: [web2py] Re: HTML5 Boilerplate

2010-09-16 Thread Albert Abril
Just a question, the html code generated by (*)helpers.. is html5
compatible?
Thanks in advance.

(*)http://www.web2py.com/book/default/chapter/05#HTML-Helpers

On Wed, Sep 15, 2010 at 9:42 PM, mdipierro  wrote:

> Eventually we should consider moving welcome to html5
>
> On Sep 15, 2:28 pm, Albert Abril  wrote:
> > There's also a good start this: HTML5 Starter Packhttp://
> sickdesigner.com/resources/HTML5-starter-pack/index.html
> >
> > <http://sickdesigner.com/resources/HTML5-starter-pack/index.html>
> >
> > On Wed, Sep 15, 2010 at 9:03 PM, Michael Ellis <
> michael.f.el...@gmail.com>wrote:
> >
> > > Just came across this while searching for something else.  Haven't
> > > played with it at all yet.  Looks as though the authors have packaged
> > > together a fairly comprehensive set of html/css/js  techniques for
> > > cross-browser compatibility and good performance.
> >
> > > Some of the techniques might be worth incorporating into layout.html.
> >
> > > Good video here
> >
> > >http://net.tutsplus.com/tutorials/html-css-techniques/the-official-gu.
> ..
> >
> > > Main site is
> >
> > >http://html5boilerplate.com/
> >
> > > The video is also at the bottom of the page at the main site.
> >
> > > Cheers,
> > > Mike
> >
> >
>


Re: [web2py] Re: possible bug with oauth20 facebook: auth.settings.login_next ignored in 1.84.4

2010-09-19 Thread Albert Abril
Thank you for fix it an be patient reading, :D

On Sat, Sep 18, 2010 at 9:52 PM, Michele Comitini <
michele.comit...@gmail.com> wrote:

> Thanks to H. Das and Albert Abril for testing oauth.
>
> I made some fixes/improvements:
>  - correct support for https://
>  - login_next working
>  - converted almost all outgoing requests to POST
>  - fixed broken callback_url handling
>  - support for optional query parameters in requests for oauth2.0
> (i.e. for scope)
>
>
> you can download the new versions here:
>
> https://code.google.com/r/michelecomitini-facebookaccess/source/browse/#hg/gluon/contrib/login_methods
>
> the repository also contains some scaffolding examples, you can also
> try them on GAE:
>
> https://grafbook.appspot.com/helloTwitter
> https://grafbook.appspot.com/helloFacebook
> https://grafbook.appspot.com/helloFacebook/graph (try to navigate the
> graph with web2py menu... :-) )
>
> thanks
> mic
>
> 2010/9/15 H. Das :
> > thank you both.
> >
> > On Sep 14, 4:34 pm, "H. Das"  wrote:
> >> Hi, I think oauth20 ignores the url set for auth.settings.login_next
> >> (and maybe logout_next too?) in web2py 1.84.4; this wasn't the case in
> >> the previous version. Any ideas?
> >>
> >> Also, where can I find previous src's of web2py?
> >>
> >> Thanks :-)
>


[web2py] routes.py routes_app and defaults

2010-09-23 Thread Albert Abril
 .

I have in the root of web2py the routes.py configured with that:

default_application = 'arritmia'# ordinarily set in base routes.py
default_controller = 'default'  # ordinarily set in app-specific routes.py
default_function = 'index'  # ordinarily set in app-specific routes.py


Ok, so when i access to the main url, web2py redirects me to
localhost:8000/arritmia/default/index , right?

Now i wanna define that, when I access:
  http://localhost:8000/bio/
It should redirect me to:
  http://localhost:8000/arritmia/bio
where bio is a controller+view into arritmia app.

But i wanna to define it, in routes.py at the root of the application.

How i define that?

Should i config routes_app in routes.py at the root of the web2py dir?

Thanks.


Re: [web2py] Re: routes.py routes_app and defaults

2010-09-23 Thread Albert Abril
yes, in this case i'm hosting a single app.
I'll do it that way.
thanks Massimo.

On Thu, Sep 23, 2010 at 3:10 PM, mdipierro  wrote:

> If you host a single app the easy way is saying in routes.pt
>
> routes_in=[
>  ('/bio/$anything', '/arritmia/bio/$anything')
> ]
>
> routes_out=[
>  ('/arritmia//bio/$anything', '/bio/$anything')
> ]
>
> On Sep 23, 6:34 am, Albert Abril  wrote:
> >  .
> >
> > I have in the root of web2py the routes.py configured with that:
> >
> > default_application = 'arritmia'# ordinarily set in base routes.py
> > default_controller = 'default'  # ordinarily set in app-specific
> routes.py
> > default_function = 'index'  # ordinarily set in app-specific
> routes.py
> >
> > Ok, so when i access to the main url, web2py redirects me to
> > localhost:8000/arritmia/default/index , right?
> >
> > Now i wanna define that, when I access:
> >  http://localhost:8000/bio/
> > It should redirect me to:
> >  http://localhost:8000/arritmia/bio
> > where bio is a controller+view into arritmia app.
> >
> > But i wanna to define it, in routes.py at the root of the application.
> >
> > How i define that?
> >
> > Should i config routes_app in routes.py at the root of the web2py dir?
> >
> > Thanks.
>


Re: [web2py] Re: welcome app normalize hack ie and html5 ready

2010-09-23 Thread Albert Abril
Wow.. nice.

In a future, I wanna do that with the admin app.

Regards!



On Thu, Sep 23, 2010 at 11:06 PM, Martin.Mulone wrote:

> Version 2.0
>
> * About validation, this almost validate in html5 but one thing that
> is important, that force to last ie render
>
> http://validator.w3.org/check?uri=web2pytesting.appspot.com&charset=(detect+automatically)&doctype=Inline&group=0
>
> * About validation in css, well i prefer that show correct and good in
> all browser, than to validate correct. This is because of the hacks.
> Believe me is good to close to almost validate but not a must.
> Validate is: "hey your are a good guy", but in real life you have the
> ie things, -moz and -wkit.
>
> I am ready to discuss, the things i changes. Some perhaps breaks
> compatibility with old welcome, but this is not important because
> scattfold app are for new ones.
>
> The main changes comes in layout.html, web2py_ajax.html, and base.css.
> You have to read this files, some are well documented in comments.
> Some explained here:
> http://www.1stwebdesigner.com/development/snippets-html5-boilerplate/
>
> well the evil one, i make order in static/ so i put css in static/
> css/, js in static/js/ and images in static/images/. Its good to have
> in order this things.
>
> this is static now:
>
> css/ (css dir)
> favicon.ico (this display icon in browser, i add transparency)
> favicon.png (this display icon in browser, iphone)
> images/ (images)
> js/ (javascripts)
> robots.txt (to control robots)
>
>
> css/
>  base.css (the main base style)
>  calendar.css
>  handheld.css (this is for mobile style)
>  superfish.css (this is menu style)
>  superfish-navbar.css
>  superfish-vertical.css
>
> images/
>  arrows-ff.png (menu need this)
>  mylogo.png (this is app logo)
>  noti_error.png (notification icon)
>  noti_ok.png (notification icon)
>  noti_warn.png (notification icon)
>  shadow.png (menu need this)
>  warning.png (pretty exception need this)
>  web2py_icon.png (I add transparency to web2py icon)
>
> js/
>  calendar.js
>  dd_belatedpng.js (this fix issue:png tranparency in ie)
>  jquery.js
>  modernizr-1.5.min.js (this enabled html5)
>  plugins.js (here perhaps the app plugins)
>  script.js (here perhaps the app scripts)
>  superfish.js
>
> * As suggest massimo i put black back in notifications.
> * I re enabled ez-css things to compatibility. But i dont understand
> why are sidebar-left and sidebar-right are if they not are used. Width
> 0 not means hide div, so i do not recommend this, this need to be as
> display: none; if not used. If this break things, ok i understand.
> * I re download superfish.js from site i dont have missings images
> thats this need. Now there are superfish.css for this things.
> * Added pretty_exceptions function in models/utils.py, when you raise
> http show a better exception page see in action here:
> http://web2pytesting.appspot.com/welcome/default/test_exception, this
> is an example perhaps need to be commented in controller.
> * in ajax_web2py i change that jquery download from online site
> prepared to serve this much faster anywhere, but if fails load the
> local version.
> * Some SEO things in layout, like analytics, meta tags specifics,
> robots etc.
> * Believe me this little things are need it, and perhaps a lot of
> more. Tomorrow i am going to check in different browsers.
>
> this is the welcome:
> http://web2pytesting.appspot.com/welcome/
>
> this is the source:
> http://web2pytesting.appspot.com/welcome/static/welcome.zip
> http://web2pytesting.appspot.com/welcome/static/welcome.w2p
>
> And test this, the classical database example with new layout:
> http://web2pytesting.appspot.com/database_example/default/register_dog
>
>
>
> On Sep 22, 6:12 pm, Jonathan Lundell  wrote:
> > On Sep 22, 2010, at 1:47 PM, Martin.Mulone wrote:
> >
> >
> >
> > > i know this need testing, i made this in hours so i think there are
> > > many errors, and i am going to fix. I am going to test in all
> > > browsers, ie, chrome. I think this is never going to validate because
> > > of the hacks, but the hacks allow that its show likely the same in all
> > > browser.
> >
> > Agreed. I like that you've made some attempt to document the hacks, and
> it'd be nice if the validators allowed you to provide a list of expected
> deviations.
>


Re: [web2py] Re: Question about CRUD forms and compute values

2010-09-27 Thread Albert Abril
Hi there.

I'm working with Bernardo.

Finally we wrote the form with SQLFORM and worked.
The 'compute' argument at the model wasn't correctly interpreted by
crud.create(db.model),
and crud didn't show the computed field at the form.
We wrote it with SQLFORM and there's not problem now.





On Sat, Sep 25, 2010 at 9:03 AM, Bernardo  wrote:

> Hi Luis,
>
> those two fields are placed in the same table as the n_lote field. The
> funny point is that n_lote is stored correctly from the insert form
> generated by crud.
>
> The problem comes when I try to se the record from the database using
> crud with crud.read(). The n_lote field is not shown in that form, and
> it should be. So, is it posible to show compute fields using crud to
> generate forms?
>
> thanks again,
> Bernardo
>
>
> --
>
>
> Hola Luis,
>
> esos dos fields se encuentran en la misma tabla que n_lote. La parte
> rara es que n_lote se guarda bien en la base de datos cuando le das al
> submit del form generado por crud a partir de esa tabla.
>
> El problema viene cuando quiero ver ese registro de la base de datos,
> utilizando crud.read(). El campo n_lote no aparece en ese form, y creo
> que debería de estar. Así que, es posible que crud te muestre los
> compute fields en los forms que genera?
>
> gracias de nuevo,
> Bernardo
>
> On 25 sep, 07:10, Luis Díaz  wrote:
> > Greetings, I ask where do you get r [date] r [Customer_ID]
> >
> > I think that Field should be within a
> > SQLFORM.factory
> >
> > so that the controller have the values of r []
> >
> > and then loads the data:
> > if form.accepts
> >
> > readhttp://web2py.com/book/default/chapter/07
> > Part of: SQLFORM.factory
> >
> > if you really understand
> >
> > ---
> >
> > saludos, pregunto de donde sacas r[fecha] y  r[cliente_id]
> >
> > en mi opinión ese Field debería estar dentro de un
> > SQLFORM.factory
> >
> > para que así en el controller tengas los valores de r[]
> >
> > y luego cargas los datos con:
> > if form.accepts
> >
> > leehttp://web2py.com/book/default/chapter/07
> > la parte de : SQLFORM.factory
> >
> > si es que te entendí bien
> >
> > --
> > Díaz Luis
> > TSU Analisis de Sistemas
> > Universidad de Carabobo
>


Re: [web2py] Re: Serve different applications to different URLS

2010-09-30 Thread Albert Abril
I'm seeing about this problem too.
I have a web2py install at webfaction.
And three different domains.

I have only one web2py installation, and I wish that depending on the url,
serve an app or other.
(because If I have two instances of web2py, it exceeds the memory of my
hosting plan).

I will try that solution.
Thanks.

On Thu, Sep 30, 2010 at 8:14 PM, mdipierro  wrote:

> routes does not support this but you can do things like
>
> app=request.env.http_host.split('.')[0]
> if not app=request.application: redirect(...)
>
> On Sep 30, 11:57 am, Tyler Laing  wrote:
> > I have two URLs, novelite.ca and noverotic.ca and I'm trying to figure
> > out how to make web2py serve a different application depending on the
> > base url.
> >
> > Does this involve routes.py?
>


[web2py] spree clone

2010-10-05 Thread Albert Abril
Is anybody working in an e-commerce or shopping cart app?

I am planning to rewrite spree with web2py.
Spree is a RubyOnRails e-commerce application.

You can see it in action:
· demo: http://demo.spreecommerce.com/
· web: http://spreecommerce.com/
· some screenshots: http://spreecommerce.com/screenshots

Also, I might say that they (spree) had a great website for the app.
I envy that for our community.

Regards!


Re: [web2py] Twitter registration/login

2010-10-08 Thread Albert Abril
Yes, Michelle Commitini wrote the welcome app with twitter authetication
with OAuth, here the link:
https://code.google.com/r/michelecomitini-facebookaccess/source/browse/#hg/applications/helloTwitter

On Fri, Oct 8, 2010 at 6:12 PM, Francisco Costa wrote:

> Hello!
> Is there any available application with twitter register/login?


Re: [web2py] Re: please help us test new web site

2010-10-10 Thread Albert Abril
In case of a new logo.
What are the guidelines you want to accomplish?

On Sun, Oct 10, 2010 at 10:55 PM, mdipierro  wrote:

> This was discussed long ago... Snakes are a nice reference to the
> Python community but are not appealing outside the community. They are
> not exactly perceived as friendly animals.
>
>
> On Oct 10, 3:19 pm, Anthony  wrote:
> > For what it's worth, I don't think we need a snake in the logo. At
> > least, it can be difficult to get it right -- snake logos can easily
> > end up looking either too fierce/scary or too childish/cartoonish.
> > Most other Python frameworks and libraries don't have snake logos (not
> > to mention that the language was actually named after Monty Python,
> > not a snake). The few snake logos that actually look OK are typically
> > highly stylized and don't really look too "snaky".
> >
> > Anthony
> >
> > On Oct 10, 2:24 pm, rochacbruno  wrote:
> >
> > > I did not understand your suggestion, what user icon?
> >
> > > Are you saying to remove "web2py" leaving just the WP or removing the
> big W leaving just the P?
> >
> > > I am working on new ideas for the logo, small changes.
> >
> > > Enviado via iPhone
> >
> > > Em 10/10/2010, às 14:21, Thadeus Burgess 
> escreveu:
> >
> > > > I think the "w" is redundant in the logo. It just looks funny.
> >
> > > > What if the logo was just the user icon in the middle?
> >
> > > > --
> > > > Thadeus
> >
> > > > On Sun, Oct 10, 2010 at 8:04 AM, johntynan 
> wrote:
> > > >> Great work with the new web2py site!  I like how well the top and
> > > >> right hand navigation is used and I was glad to discover some
> > > >> resources about web2py that I didn't realize were available.
> >
> > > >> I have one question.  Do you think the twitter link should direct
> > > >> people to the twitter search for web2py, as opposed to the web2py
> > > >> twitter account?  http://twitter.com/search/web2py
> >
> > > >> Excellent work!- Hide quoted text -
> >
> > > - Show quoted text -
> >
> >
>


Re: [web2py] Re: please help us test new web site

2010-10-12 Thread Albert Abril
I totally agree with weheh, web2py is a big quality framework and deserves a
profesional logo.

mdipierro said:

I think we need an app just to post logos and a page to show them all.

Even if only one of the logos will be used for the web page there are

so many great ideas and I'd hate for them to go wasted.


+1 to the logo web page.



On Tue, Oct 12, 2010 at 11:15 AM, Tom Atkins  wrote:

> just as an idea: http://susweb.net/images/web2py.gif
>
>
> On 12 October 2010 09:43, Tom Atkins  wrote:
>
>> I vote A but with lower case like B - web2py - and perhaps a more stylish
>> font?
>>
>> PS Great to see the effort going into this and the new site design - it
>> will really help increase use of web2py (although it seems silly that
>> aesthetics matter so much, it's a fact of life that they do).
>>
>
>


Re: [web2py] Re: please help us test new web site

2010-10-12 Thread Albert Abril
I forgot to make my vote:

I love the two ones of Solie. My vote for (B), the first one of Sollie.




On Tue, Oct 12, 2010 at 11:47 AM, Albert Abril wrote:

> I totally agree with weheh, web2py is a big quality framework and deserves
> a profesional logo.
>
> mdipierro said:
>
>  I think we need an app just to post logos and a page to show them all.
>
>  Even if only one of the logos will be used for the web page there are
>
> so many great ideas and I'd hate for them to go wasted.
>
>
> +1 to the logo web page.
>
>
>
> On Tue, Oct 12, 2010 at 11:15 AM, Tom Atkins  wrote:
>
>> just as an idea: http://susweb.net/images/web2py.gif
>>
>>
>> On 12 October 2010 09:43, Tom Atkins  wrote:
>>
>>> I vote A but with lower case like B - web2py - and perhaps a more stylish
>>> font?
>>>
>>> PS Great to see the effort going into this and the new site design - it
>>> will really help increase use of web2py (although it seems silly that
>>> aesthetics matter so much, it's a fact of life that they do).
>>>
>>
>>
>


Re: [web2py] Powered by web2py

2010-10-13 Thread Albert Abril
It's not finished yet, but you can add:
http://arritmia.bressol.org

On Wed, Oct 13, 2010 at 7:53 AM, Bruno Rocha  wrote:

> I am developing a slide show with the best ones to put on home page,
> just like the one you can see in pylonshq.com
>
> And is a good idea to have a /poweredby page in web2py.com, where users
> could update, send new links.
>
> 2010/10/13 Álvaro Justen [Turicas] 
>
> Rene did a nice work!
>> What about creating http://poweredby.web2py.com/ ?
>>
>> On Sun, Oct 10, 2010 at 21:50, Bruno Rocha  wrote:
>> > A student of one of my classes of web2py training in Brazil, research
>> the
>> > web and made a list of websites powered by web2py.
>> > he separates in categories: Populars, Great Ones, Good ones and which
>> keeps
>> > scaffold layout.
>> > I found good designed websites in that list.
>> > http://www.elizabethscanvas.org/
>> > http://www.qakit.com/
>> > http://ru.ly/ ( an URL shortener)
>> >
>> > Forwarded is the entire list, do you know someone else?
>> >
>> > ---
>> > -- Forwarded message --
>> > From: Rene Guerrero 
>> > Date: 2010/10/10
>> > Subject: Sites que utilizam web2py
>> > To: rochacbr...@gmail.com
>> >
>> >
>> > Bruno
>> >
>> > Participei no seu curso de web2py básico na Tempo Real Eventos em 28 de
>> > agosto em São Paulo.
>> > Desde aquela data até hoje tenho me dedicado a estudar o web2py.
>> > Paralelamente fui na web procurar exemplos de sites desenvolvidos com o
>> > web2py.
>> > Encontrei vários, que classifiquei seguindo meu conceito de sites melhor
>> > desenvolvidos, mais complexos ou mais bonitos.
>> > Espero que sejam de alguma ajuda para você poder utilizar na sua tarefa
>> > evangelizadora deste framework.
>> > Para alguns deles não indico a página inicial, porque a mencionada me
>> > pareceu mais esclarecedora.
>> > Nem todos indicam inicialmente que foram feitos com web2py. Uns poucos
>> só
>> > indicam sua origem em algum lugar dentro dos respectivos blogs (da
>> empresa
>> > ou do autor).
>> >
>> > Conhecidos:
>> > http://web2pyslices.com/main/default/index
>> > http://www.pyforum.org/
>> > http://www.qualitysystems.com/qs/
>> > http://www.tenthrow.com/home/
>> > http://radbox.me/
>> > https://us.pycon.org/2009/register/default/about
>> > https://us.pycon.org/2010/register/default/about
>> >
>> > Bons:
>> > http://www.latnblack.com/
>> > http://auctionall.info/hausstand
>> > http://www.qakit.com/
>> > http://www.epysoft.com/
>> > http://www.healthscapes.org/welcome/default/index
>> > http://www.whitepeaksoftware.com/
>> > http://hipercenter.com/
>> > http://www.corraleslamagdalena.com.ar/lamagdalena/
>> > http://www.norterural.com.ar/norterural/default/noticias/2
>> > http://rockiger.com/
>> > http://www.elizabethscanvas.org/
>> > http://site.quadraforte.com/
>> >
>> http://www.signatur-kampagnen.de/NichtraucherSignatur/default/show/company
>> > http://www.nzacap.org.nz/welcome/folders/public/1/1
>> > http://www.throngly.com/
>> > http://www.klasproducts.com/
>> > http://ru.ly/
>> > http://www.justindressel.com/
>> > http://web2pybrasil.com.br
>> > Algo menos:
>> > http://ga2arch.appspot.com/
>> > https://backdoorhiding.appspot.com/
>> > http://laurendickey.com/
>> > http://www.wedo-group.com/welcome/statement/vision
>> > http://danielkrol.com/welcome/default/diffeqmunchers/
>> > http://diarywiz.com/dw/default/index
>> > http://wavedirectory.appspot.com/
>> > http://openshare.emotionull.com/
>> > http://projectkintaro.appspot.com/
>> > http://www.spinyc.com/
>> > http://ronluppers.nl/ronluppers/default/index
>> > http://www.sitescraper.net/
>> > http://www.opensvc.com/
>> > http://www.igeejo.com/blog/default/projects
>> > http://equimindfinancial.appspot.com/equi/default/index
>> > http://www.professionalit.com.br/
>> > http://favr.appspot.com/
>> > http://web2py.appspot.com/metacryption
>> >
>> http://klever.hs-augsburg.de/NiKatFI/rstPages/show/Courses/Navigation/index.rst
>> > http://fightalzheimers.appspot.com/init/default/wiki/main
>> > http://www.jwfind.net/
>> > http://rheum.huh.harvard.edu/pgdemo/stree/view/4
>> > http://valmivolpato.appspot.com/villeveneteacaerano/default/villa
>> > http://web2py.appspot.com/
>> > http://www.semanticsbml.org/aym/
>> >
>> > Bem menos:
>> > http://www.futurelogic.com/init/default/wiki/Currents
>> > http://w2popenid.appspot.com/init/default/wiki/main
>> > http://www.paneido.com/init/default/index
>> > http://aion-info.appspot.com/
>> > http://www.zgus.com/
>> > http://www.audiobabble.com/audiobabble/default/multi_suggest
>> > http://www.web-it.dk/
>> > http://semanticsbml.org/semanticSBML
>> > http://www.saluedo.be/
>> > http://web2py-crm.appspot.com/
>> > http://www.site51.net/wiki/default/page/DiyWeb2py
>> > http://www.seccion36.org.mx/
>> > http://web2py.appspot.com/t3/default/wiki/main
>> > http://web2py.appspot.com/survey/survey/index
>> >
>> > No caso da última lista, este sites mostram praticamente a mesma
>> > configuração visual default do web2py, com poucas alterações.
>> >
>> > Aind

Re: [web2py] Re: Serve different applications to different URLS

2010-10-16 Thread Albert Abril
Hi Tyler.

Did you tested that method?
or maybe found another solution?


On Fri, Oct 1, 2010 at 1:09 AM, Tyler Laing  wrote:

> Hmm, not sure how that would work on Webfaction. I'll submit a ticket
> about this, thanks!
>
> On Sep 30, 2:35 pm, Bruno Rocha  wrote:
> > $ cd /etc/apache2/sites-enabled
> > $ > yourApp
> >
> > then
> >
> > 
> >   ServerNamewww.yourAppDomain.com
> >   RewriteEngine on
> >   RewriteRule ^/(.*)
> >  http://anyhost:anyport
> /yourSiteBase/http/anyhost:anyport/YourSiteBase...
> > [L,P]
> > 
> >
> > If you create separate config for each VirtualHost domain, you can do
> that,
> > or better if you create subdomains for each app
> >
> > 2010/9/30 Bruno Rocha 
> >
> >
> >
> > > If you are using Apache, you can create rules on apache default
> > > configuration. to redirect based on domain.
> >
> > > 2010/9/30 Albert Abril 
> >
> > > I'm seeing about this problem too.
> > >> I have a web2py install at webfaction.
> > >> And three different domains.
> >
> > >> I have only one web2py installation, and I wish that depending on the
> url,
> > >> serve an app or other.
> > >> (because If I have two instances of web2py, it exceeds the memory of
> my
> > >> hosting plan).
> >
> > >> I will try that solution.
> > >> Thanks.
> >
> > >> On Thu, Sep 30, 2010 at 8:14 PM, mdipierro  >wrote:
> >
> > >>> routes does not support this but you can do things like
> >
> > >>> app=request.env.http_host.split('.')[0]
> > >>> if not app=request.application: redirect(...)
> >
> > >>> On Sep 30, 11:57 am, Tyler Laing  wrote:
> > >>> > I have two URLs, novelite.ca and noverotic.ca and I'm trying to
> figure
> > >>> > out how to make web2py serve a different application depending on
> the
> > >>> > base url.
> >
> > >>> > Does this involve routes.py?
> >
> > > --
> >
> > >http://rochacbruno.com.br
> >
> > --
> >
> > http://rochacbruno.com.br
>


Re: [web2py] Re: tip of the day. The power of routes

2010-10-18 Thread Albert Abril
Wow! Thank you Massimo.
Just now I was having that problem.

On Mon, Oct 18, 2010 at 9:01 AM, Tom Atkins  wrote:

> Fantastic - thanks Massimo.  That is extremely useful - my regex skills are
> pretty poor but this really helps with getting to grips with routes.py.
>
> Love the 'tips of the day' - keep 'em coming!
>
>
> On 18 October 2010 03:07, mdipierro  wrote:
>
>> I put the script in trunk under scripts/autoroutes.py
>> to use it
>>
>> cp scripts/autoroutes.py routes.py
>>
>> then edit routes.conf
>>
>> as explained below:
>>
>> On Oct 17, 9:03 pm, mdipierro  wrote:
>> > Replace your web2py/routes.py with this:
>> >
>> > - begin routes.py---
>> > try: config=open('routes.conf','r').read()
>> > except: config=''
>> > def auto_in(apps):
>> > routes=[
>> > ('/robots.txt','/welcome/static/robots.txt'),
>> > ('/favicon.ico','/welcome/static/favicon.ico'),
>> > ('/admin$a','/admin$a'),
>> > ]
>> > for a,b in [x.strip().split() for x in apps.split('\n') \
>> > if x.strip() and not x.strip().startswith('#')]:
>> > if not b.startswith('/'): b='/'+b
>> > if b.endswith('/'): b=b[:-1]
>> > app = b.split('/')[1]
>> > routes+=[
>> > ('.*:https?://(.*\.)?%s:$method /' % a,'%s' % b),
>> > ('.*:https?://(.*\.)?%s:$method /static/$a' % a,'%s/static/
>> > $a' % app),
>> > ('.*:https?://(.*\.)?%s:$method /appadmin/$a' % a,'%s/
>> > appadmin/$a' % app),
>> > ('.*:https?://(.*\.)?%s:$method /$a' % a,'%s/$a' % b),
>> > ]
>> > return routes
>> >
>> > def auto_out(apps):
>> > routes=[]
>> > for a,b in [x.strip().split() for x in apps.split('\n') \
>> > if x.strip() and not x.strip().startswith('#')]:
>> > if not b.startswith('/'): b='/'+b
>> > if b.endswith('/'): b=b[:-1]
>> > app = b.split('/')[1]
>> > routes+=[
>> > ('%s/static/$a' % app,'static/$a'),
>> > ('%s/appadmin/$a' % app, '/appadmin/$a'),
>> > ('%s/$a' % b, '/$a'),
>> > ]
>> > return routes
>> >
>> > routes_in=auto_in(config)
>> > routes_out=auto_out(config)
>> > --- END ---
>> >
>> > what does it do? It writes routes for you based on a simpler routing
>> > configuration file called routes.conf. here is an example:
>> >
>> > - BEGIN routes.conf---
>> > 127.0.0.1   /examples/default
>> > domain1.com /app1/default
>> > domain2.com /app2/default
>> > domain3.com /app3/default
>> > - END --
>> >
>> > It maps a domain (the left had side) into an app and it shortens the
>> > URLs for the app, by removing the listed path prefix. That means
>> >
>> > http://domain1.com/indexwill be mapped into  /app1/default/indexhttp://
>> domain2.com/indexwill be mapped into  /app2/default/index
>> >
>> > It is safe in that it preserves admin, appadmin, static files,
>> > favicon.ico and robots.txt.
>> >
>> >
>> http://domain1.com/favicon.icohttp://domain1.com/robots.txthttp://domain1.com/admin/...
>>   /admin/...http://domain1.com/appadmin/...  /app1/appadmin/...
>> http://domain1.com/static/...  /app1/static/...
>> >
>> > and vice-versa.
>> >
>> > It does assume one app per domain.
>> >
>> > I think something like this should be default since lots of people
>> > find routes.py hard to work with.
>> > Comments? Suggestions?
>> >
>> > Massimo
>>
>
>


Re: [web2py] Re: Instant Press in beta

2010-10-18 Thread Albert Abril
Me too.
Also, it's a killer app. :)

On Mon, Oct 18, 2010 at 7:11 PM, mdipierro  wrote:

> I like it too.
>
> On Oct 18, 11:45 am, rochacbruno  wrote:
> > I like Instant Press. This makes me think about "rapid publishing" which
> means "easy to publish" or something "Agile"  like that.
> >
> > Enviado via iPhone
> >
> > Em 18/10/2010, às 14:42, "Martin.Mulone" 
> escreveu:
> >
> > > I already have the domain instant2press.com
> >
> > > On Oct 18, 1:36 pm, mdipierro  wrote:
> > >> press2py, word2py, py2press, press4web, word4web, etc.
> >
> > >> On Oct 18, 11:05 am, Jonathan Lundell  wrote:
> >
> > >>> Here's an idea, free for nothing, for this or some other application:
> name it Web Press. (I haven't checked for conflicts.)
> >
> > >>> The reason I especially like it is that a "web press" has an old
> meaning: the large, high-volume roll-fed presses used by newspapers and the
> like. You've probably seen them in the movies.
> >
> >
>


Re: [web2py] Re: Request for a logo - PluginCentral

2010-10-25 Thread Albert Abril
+1 to Bruno and Branko

On Mon, Oct 25, 2010 at 11:17 PM, Bruno Rocha  wrote:

> > Branko, Did you proposed a logo for web2py main site too ?
>> > You did an excelent work with this one, if we have a second round to
>> submit
>> > and vote for logos, you would send your ideas.
>>
>> Well, no I haven't proposed a logo for web2py. I wasn't aware of
>> web2py until very recently, and then I just noted a change in the main
>> website design. :) If a new logo is needed at any time, I will be
>> delighted to propose one.
>
>
> Branko, I dont know if people are thinking about a Second round on logo
> votation http://www.blouweb.com/logovote/default/index?order=id
> , but even without tha votation, I think it is a good idea for you to
> propose a new logo.
>
> - Logo should have no snakes
> - Logo should not be childish/fun
> - Better more letters than images
> - Should blend with the website color scheme
> - Should be good on every background or printing
>
> If you propose a nice logo, I think it can be considered, even if not for
> mainsite, but for ther related projects or welcome app.
>
>


Re: [web2py] Re: Request for a logo - PluginCentral

2010-10-26 Thread Albert Abril
+1 to Branko again.

( mailist should have a comment voting system :D )

On Tue, Oct 26, 2010 at 8:50 PM, Branko Vukelic  wrote:

> Please don't even try to imagine a graphic designer that would turn
> abstract ideas like Stability and Ease of use into a useful graphic.
> That's impossible. In reality, it's the reverse. You have a memorable
> image that you can associate with the qualities you discover in a
> product. And only then does the image 'obtain' those qualities.
>
> Does a 3-pointed star represents German high-precision engineering,
> and luxury? I doubt that. Yet, Benz is using that shape. And people
> have come to associate those qualities with exactly the kind of
> 3-pointed star Benz uses, and no other. You can put just any kind of
> 3-pointed star on your car and expect it to look well-made and
> comfortable. It only works if it's the Mercedes-Benz 3-pointed star.
>
> When Arch Linux community had it's logo design contest, we run into
> this very problem: discussion about the qualities that a logo should
> represent. And, of course, you can't find those qualities in the logo
> that's currently being used unless you've associated them with the
> image yourself. But the discussion dragged on for days, and the whole
> community was divided in a flame war. There were even some
> 'professionals' who claimed a logo really can speak 1000 words. That's
> so far from truth. You'd really have to draw a painting of a logo to
> pull that off.
>
> So, what are the notable exceptions to the above? Concrete imagery. In
> other words, mascots. And only those mascots that have some root in
> the culture. Lions, Tigers, Crane, Frogs, etc. Those animals have
> traditionally lots of characteristics associated with them. So using
> such images definitely can tell a story. What about that ship? Well,
> it's a 50-50 bet.
>
> To some it may speak, to others it may not. And here's a good test of
> this. How many of you had the following ideas when seeing that ship:
>
> * Ability to carry a huge amount of load: scalability
> * A graceful voyage across a vast ocean: stability
> * Took a lot of manpower to build: great community
>
> How many of you got those ideas upon seeing it? I suspect most had
> other thoughts. I seriously doubt there is a unified and universal
> graphical language that you can use reliably to relay abstract
> messages. IOW: Graphic design still hasn't got it's HTTP. ;)
>
> So, before this turns into a pointless discussions, let's just stop
> wasting time on abstract ideas. Stability, Speed, Scalability, et al.
> those are for the product itself to achieve, not the logo. Logo can be
> colorful, sharp, cute, dull, crap... Let's focus on what the logo CAN
> be, please.
>
> On Tue, Oct 26, 2010 at 6:36 PM, mwolfe02
>  wrote:
> > Excellent points.
> >
> > On Oct 26, 12:04 pm, Anthony  wrote:
> >> Also:
> >> 3. Easy (to learn and use)
> >> 4. Open/welcoming/friendly/helpful (this refers to the community)
> >> 5. Active development (i.e., constantly being enhanced and improved)
> >>
> >> As for the logo, I'm sure opinions will differ on all-text vs. image
> >> logos (and will probably depend a lot on the particular design), but
> >> I'm not sure a highly literal physical object image (e.g., boat,
> >> train, animal, etc.) will work that well for web2py. Those kinds of
> >> images certainly make sense when they represent something directly in
> >> the brand name (e.g., Ruby on Rails has a ruby with rails; Turbogears
> >> has a gear; Flask has a flask), but can be confusing otherwise. That's
> >> not to say we shouldn't have an image, but if we do, something more
> >> abstract may work better (e.g., like the old logo).
> >>
> >> Anthony
> >>
> >> On Oct 26, 11:27 am, mwolfe02  wrote:
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> > I really like the idea of a bold, simple image to represent the
> >> > framework.  I'm just not convinced a ship is the right image.
> >>
> >> > Maybe it would be more helpful to the few good logo designers on this
> >> > list (of which Branko is certainly one), for us to propose different
> >> > images.  I'll list what I feel (personally) are the strengths of the
> >> > framework that an image would ideally represent:
> >>
> >> > 1a. Speed (of development)
> >> > 1b. Security
> >> > 2.  Reliability/Stability (ie, promise of backwards
> >> > compatibility...the one thing that *truly* distinguishes web2py from
> >> > other frameworks; most others don't even try)
> >>
> >> > Some quick image ideas off the top of my head (that may or may not be
> >> > practical as logos):
> >> > - 'bullet' train
> >> > - sailfish
> >> > - catamaran sailboat (a bit more modern-looking/faster than Branko's
> >> > original ship design; though I'd imagine less logo-friendly)
> >> > - hummingbird
> >> > - chain (close-up of two or three individual links)
> >> > - hawk
> >> > - lion
> >> > - gazelle
> >>
> >> > Please note that I've left off spiders and snakes.  I think they would
> >> > add less than nothing 

Re: [web2py] Re: web2py testing & release cycle

2010-10-30 Thread Albert Abril
Ok. Count on me too.
I can't organize this, because I'm not an expert in tests, but can
contribute with testing.

Regards!

On Sat, Oct 30, 2010 at 9:03 PM, Luther Goh Lu Feng wrote:

> +1 Count me in. I am pretty new to python. But I am sure there are at
> least one or two simple test cases for me to write tests for.
>
> On Oct 31, 1:30 am, b00m_chef  wrote:
> > I was just wondering if it would be possible to have the development
> > team compile a list of features that need tests written for them. I
> > would enjoy writing a few tests, though, I don't have time to dig
> > through the whole code base and figure out on my own what needs
> > testing.
> >
> > Ideally, if you guys could put together a list of features + a general
> > spec for how you would like to see the tests written & reported,
> > personally I would be happy to contribute a couple. But I can't do
> > that until you have produced a "check list" of features.
> >
> > You could even make it into a contest at some point--who can write the
> > most tests in some period of time...
>


Re: [web2py] how to derive a class from Table ?

2010-10-31 Thread Albert Abril
I'm not sure if you can do this with DAL.
However, maybe if you use an ORM you can derivate models.
Time ago someone write about using Django ORM or SQLAlchemy in web2py for
make this, you can read here [1] and here [2].

Correct me if i am not on the right way, thanks.

[1] http://www.mail-archive.com/web2py@googlegroups.com/msg36450.html
[2] http://web2py.com/AlterEgo/default/show/189


On Sun, Oct 31, 2010 at 10:11 AM, Stef Mientki wrote:

> hello,
>
> I'ld like to derive a new class from Table
> (if it succeeds, I can integrate DAL into my existing programs, without
> changing anything, except
> adding an import statement)
>
> This seems to be the obvious way,
> the problem is that although a table seems to be created,
> the Table is not attached to the database.
> So writing to the database disappears in the universe.
>
> class DAL_Table ( Table ) :
>def __init__ ( self, DB, Name, Defs, Drop = False, Mod_Table = False ) :
>... do my preprocessing, generate Fields
>Table.__init__ ( self, DB, Name, *Fields, migrate = Name + '.table'
> )
>
>
> This ones create a table attached to a database,
> but the DAL_Table doesn't hace the properties of Table
> class DAL_Table ( object ) :
>def __init__ ( self, DB, Name, Defs, Drop = False, Mod_Table = False ) :
>... do my preprocessing, generate Fields
>My_Table = DB.define+table ( Name, *Fields, migrate = Name +
> '.table' )
>... but now DAL_Table doesn't have the properties of Table
>
> thanks,
> Stef Mientki
>
>


Re: [web2py] Re: Request for a logo - PluginCentral

2010-10-31 Thread Albert Abril
Finally it's going to be a 2n Round logo contest as said at this thread?
Just curious.

On Tue, Oct 26, 2010 at 9:28 PM, Albert Abril wrote:

> +1 to Branko again.
>
> ( mailist should have a comment voting system :D )
>
>
> On Tue, Oct 26, 2010 at 8:50 PM, Branko Vukelic wrote:
>
>> Please don't even try to imagine a graphic designer that would turn
>> abstract ideas like Stability and Ease of use into a useful graphic.
>> That's impossible. In reality, it's the reverse. You have a memorable
>> image that you can associate with the qualities you discover in a
>> product. And only then does the image 'obtain' those qualities.
>>
>> Does a 3-pointed star represents German high-precision engineering,
>> and luxury? I doubt that. Yet, Benz is using that shape. And people
>> have come to associate those qualities with exactly the kind of
>> 3-pointed star Benz uses, and no other. You can put just any kind of
>> 3-pointed star on your car and expect it to look well-made and
>> comfortable. It only works if it's the Mercedes-Benz 3-pointed star.
>>
>> When Arch Linux community had it's logo design contest, we run into
>> this very problem: discussion about the qualities that a logo should
>> represent. And, of course, you can't find those qualities in the logo
>> that's currently being used unless you've associated them with the
>> image yourself. But the discussion dragged on for days, and the whole
>> community was divided in a flame war. There were even some
>> 'professionals' who claimed a logo really can speak 1000 words. That's
>> so far from truth. You'd really have to draw a painting of a logo to
>> pull that off.
>>
>> So, what are the notable exceptions to the above? Concrete imagery. In
>> other words, mascots. And only those mascots that have some root in
>> the culture. Lions, Tigers, Crane, Frogs, etc. Those animals have
>> traditionally lots of characteristics associated with them. So using
>> such images definitely can tell a story. What about that ship? Well,
>> it's a 50-50 bet.
>>
>> To some it may speak, to others it may not. And here's a good test of
>> this. How many of you had the following ideas when seeing that ship:
>>
>> * Ability to carry a huge amount of load: scalability
>> * A graceful voyage across a vast ocean: stability
>> * Took a lot of manpower to build: great community
>>
>> How many of you got those ideas upon seeing it? I suspect most had
>> other thoughts. I seriously doubt there is a unified and universal
>> graphical language that you can use reliably to relay abstract
>> messages. IOW: Graphic design still hasn't got it's HTTP. ;)
>>
>> So, before this turns into a pointless discussions, let's just stop
>> wasting time on abstract ideas. Stability, Speed, Scalability, et al.
>> those are for the product itself to achieve, not the logo. Logo can be
>> colorful, sharp, cute, dull, crap... Let's focus on what the logo CAN
>> be, please.
>>
>> On Tue, Oct 26, 2010 at 6:36 PM, mwolfe02
>>  wrote:
>> > Excellent points.
>> >
>> > On Oct 26, 12:04 pm, Anthony  wrote:
>> >> Also:
>> >> 3. Easy (to learn and use)
>> >> 4. Open/welcoming/friendly/helpful (this refers to the community)
>> >> 5. Active development (i.e., constantly being enhanced and improved)
>> >>
>> >> As for the logo, I'm sure opinions will differ on all-text vs. image
>> >> logos (and will probably depend a lot on the particular design), but
>> >> I'm not sure a highly literal physical object image (e.g., boat,
>> >> train, animal, etc.) will work that well for web2py. Those kinds of
>> >> images certainly make sense when they represent something directly in
>> >> the brand name (e.g., Ruby on Rails has a ruby with rails; Turbogears
>> >> has a gear; Flask has a flask), but can be confusing otherwise. That's
>> >> not to say we shouldn't have an image, but if we do, something more
>> >> abstract may work better (e.g., like the old logo).
>> >>
>> >> Anthony
>> >>
>> >> On Oct 26, 11:27 am, mwolfe02  wrote:
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> > I really like the idea of a bold, simple image to represent the
>> >> > framework.  I'm just not convinced a ship is the right image.
>> >>
>> 

Re: [web2py] new admin layout

2010-11-01 Thread Albert Abril
Love it.
Better than older, IMHO.

On Mon, Nov 1, 2010 at 6:56 PM, mdipierro  wrote:

> There is a new admin layout/style in trunk. I think it looks more
> professional. Feedback... not sure we need another contest (although
> we could). For now I am interested in knowing whether you think this
> is better or worse.
>
> Massimo


Re: [web2py] new admin layout

2010-11-01 Thread Albert Abril
Just say that in
   changeset:   1108:9d9d4de746af
there's no ...
  http://127.0.0.1:8000/admin/static/gae.png>
">
..then the img link is broken.

The rest seems OK.


On Mon, Nov 1, 2010 at 7:11 PM, Albert Abril  wrote:

> Love it.
> Better than older, IMHO.
>
>
> On Mon, Nov 1, 2010 at 6:56 PM, mdipierro  wrote:
>
>> There is a new admin layout/style in trunk. I think it looks more
>> professional. Feedback... not sure we need another contest (although
>> we could). For now I am interested in knowing whether you think this
>> is better or worse.
>>
>> Massimo
>
>
>


Re: [web2py] Re: ymacs editor

2010-11-02 Thread Albert Abril
Wow! I didn't know about Amy.

I like Amy so much.
With the new design and this editor, maybe I use more the admin interface.

Great job people!

On Tue, Nov 2, 2010 at 10:56 PM, mdipierro  wrote:

> edit admin/models/0.py it is the first admin config option.
>
> On Nov 2, 4:43 pm, Branko Vukelic  wrote:
> > Is Amy in trunk? How do you switch to it?
> >
> > On Tue, Nov 2, 2010 at 10:35 PM, mdipierro 
> wrote:
> > > I am all for replacing the current editor with this. At least provide
> > > it as an option along with editarea and Amy, both supported now.
> >
> > > Massimo
> >
> > > On Nov 2, 4:08 pm, Michele Comitini 
> > > wrote:
> > >> Bruno Rochas pointed this out:
> >
> > >>http://www.ymacs.org/demo/
> >
> > >> cool!
> >
> > >> mic
> >
> > --
> > Branko Vukelić
> >
> > bg.bra...@gmail.com
> > stu...@brankovukelic.com
> >
> > Check out my blog:http://www.brankovukelic.com/
> > Check out my portfolio:http://www.flickr.com/photos/foxbunny/
> > Registered Linux user #438078 (http://counter.li.org/)
> > I hang out on identi.ca:http://identi.ca/foxbunny
> >
> > Gimp Brushmakers Guildhttp://bit.ly/gbg-group
>


Re: [web2py] Re: rich UI and util js library

2010-11-02 Thread Albert Abril
Is the library (or AJAX toolkit) used to make ymacs, as said at his web:
http://www.ymacs.org/


On Tue, Nov 2, 2010 at 10:37 PM, mdipierro  wrote:

> This is good work. It is very clear and bsd license.
>
> On Nov 2, 4:32 pm, Michele Comitini 
> wrote:
> > Could be a good alternative to pyjamas approach for building component
> > based UIs?
> >
> > http://www.dynarchlib.com/dl/index.html
> >
> > mic
>


[web2py] [offtopic] HTML5 builder, python way.

2010-11-02 Thread Albert Abril
html5witch is an early-stage Python 2.5+ HTML5 generator based on
xmlwitch
.
http://github.com/galvez/html5witch


Re: [web2py] [Tip] How to get people who does not follow you on twitter

2010-11-03 Thread Albert Abril
Meanwhile, and only If you want, send me or post here your nicknames of
twitter and I'll make a web2py twitter-list.
my twitter is @desmondo.


On Wed, Nov 3, 2010 at 10:06 PM, rochacbruno  wrote:

> Do you mean showing who follows @web2py?
>
> I think it is a good idea, even to create some kind of web2pyers network
> based on twitter.
>
> Enviado via iPhone
>
> Em 03/11/2010, às 18:18, Michele Comitini 
> escreveu:
>
> > Don't you think some components using this on web2py.com home page
> > would be nice?
> >
> >
> >
> > 2010/11/3 Bruno Rocha :
> >> Maybe it can be usefull for someone building a twitter app with web2py,
> >> I take this form an example posted by @gwidion on twitter.
> >> 
> >> # -*- coding: utf-8 -*-
> >> import urllib, json
> >> # Author: João S. O. Bueno
> >> # License: LGPL V 3.0
> >> def get_people_set(method, id, update=None):
> >> url = "http://api.twitter.com/1/statuses/%s/%s.json";  % (method,
> id)
> >> people = set()
> >> cursor = "-1"
> >> while True:
> >> data = json.loads(urllib.urlopen(url + "?cursor=%s" %
> >> cursor).read())
> >> cursor = data["next_cursor"]
> >> if update:
> >> update(cursor)
> >> these_people = set(person["screen_name"] for person in
> >> data["users"])
> >> people.update(these_people)
> >> if not cursor  or not these_people :
> >> break
> >> return people
> >> 
> >> As it returns a set, it is easy to get its intersection/union and rest.
> >> 
> >> friends = get_people_set("friends", id, self.status)
> >> followers = get_people_set("followers", id, self.status)
> >> 
> >> To get who does not follow you, simple do:
> >> 
> >> noFollowers = sorted(friends - followers)
> >> 
> >> I am building my own twitter client, using @michelecomitini example,
> >> including some more options as this one.
> >>
> >> Bruno Rocha
> >> http://flavors.me/rochacbruno
> >>
> >>
> >>
> >>
>


Re: [web2py] Re: Interesting developments...

2010-11-06 Thread Albert Abril
What about hyde?
https://github.com/blog/342-hyde-the-python-static-site-generator

"Hyde is
a static website generator powered by Python & Django. Hyde supports all the
Django template tags & filters and even has a few of its own. The built-in
web server + auto-generator provide instant refresh and
unlimited flexibility-
( http://ringce.com/hyde )



On Sat, Nov 6, 2010 at 10:55 PM, Branko Vukelic  wrote:

> On Sat, Nov 6, 2010 at 10:41 PM, Anthony  wrote:
> > (well, perhaps web2py is implied in the "...")
>
> I gather most people are not aware web2py exists. It's too different:
>
> * Uses upper-case method names
> * Has it's app manager and built-in editor (two actually, and couting)
> * Migrates the db schema on its own
> * Has a wizard
> * Has a plug-in system that actually works like a plug-in system
> * Has 10 official logos (and couting)
> * Has intro to Python and jQuery in the official book
> * Has a weird lead developer that implements just about any great idea
> he picks up in the list :)
>
> How can you compare all that to other (Python) frameworks?
>
>
> --
> Branko Vukelić
>
> bg.bra...@gmail.com
> stu...@brankovukelic.com
>
> Check out my blog: http://www.brankovukelic.com/
> Check out my portfolio: http://www.flickr.com/photos/foxbunny/
> Registered Linux user #438078 (http://counter.li.org/)
> I hang out on identi.ca: http://identi.ca/foxbunny
>
> Gimp Brushmakers Guild
> http://bit.ly/gbg-group
>


Re: [web2py] Re: Problem with RPX - janrain engage

2010-11-11 Thread Albert Abril
hehe.. it happens to me too.

you should write only the name of the subdomain.
if you have http://web2pyapp.rpxnow.com , you have to write only 'web2pyapp'
.
I hope this help to others.

Regards!

On Thu, Nov 11, 2010 at 10:02 PM, Bruno Rocha  wrote:

> SOLVED!
>
> It was an error on configuration, domain parameter on RPXAccount expect
> just a domainname, I was providing full URL.
>
> Thanks
>
> 2010/11/11 Bruno Rocha 
>
> HI,
>>
>> I am trying to activate janrain as the loggin method, and I want to keep
>> the normal login method too.
>>
>> but I am getting this error: "This frame was blocked because it contains
>> insecure content."
>>
>> http://natalanimal.com.br/init/default/user/login
>>
>> Any idea?
>>
>
>
>
> --
>
> http://rochacbruno.com.br
>


Re: [web2py] Re: Problem with RPX - janrain engage

2010-11-11 Thread Albert Abril
I guess you should comment second line of the janrain auth in db.py

As said at
http://web2py.com/book/default/chapter/08#Integration-with-OpenID,-Facebook

1.
2.
3.
4.
5.
6.

from gluon.contrib.login_methods.rpx_account import RPXAccount
auth.settings.actions_disabled=['register','change_password','request_reset_password']
auth.settings.login_form = RPXAccount(request
<http://web2py.com/book/default/docstring/request>,
api_key='...',
domain='...',
url = "http://localhost:8000/%s/default/user/login"; % request
<http://web2py.com/book/default/docstring/request>.application)

The first line imports the new login method, *the second line disables local
registration*, and the third line asks web2py to use the RPX login method.



On Thu, Nov 11, 2010 at 10:46 PM, Bruno Rocha  wrote:

> Somebody knows how can I use RPX and Normal Login form in the same way that
> web2pyslices are using here:
> http://web2pyslices.com/main/default/user/login
>
> ???
>
>
>
> 2010/11/11 Bruno Rocha 
>
>> It is a commom mistake, so I think is a good idea to include a note in
>> /book and in db.py for scaffold app.
>>
>>
>>
>> 2010/11/11 Albert Abril 
>>
>> hehe.. it happens to me too.
>>>
>>> you should write only the name of the subdomain.
>>> if you have http://web2pyapp.rpxnow.com , you have to write only
>>> 'web2pyapp' .
>>> I hope this help to others.
>>>
>>> Regards!
>>>
>>>
>>> On Thu, Nov 11, 2010 at 10:02 PM, Bruno Rocha wrote:
>>>
>>>> SOLVED!
>>>>
>>>> It was an error on configuration, domain parameter on RPXAccount expect
>>>> just a domainname, I was providing full URL.
>>>>
>>>> Thanks
>>>>
>>>> 2010/11/11 Bruno Rocha 
>>>>
>>>> HI,
>>>>>
>>>>> I am trying to activate janrain as the loggin method, and I want to
>>>>> keep the normal login method too.
>>>>>
>>>>> but I am getting this error: "This frame was blocked because it
>>>>> contains insecure content."
>>>>>
>>>>> http://natalanimal.com.br/init/default/user/login
>>>>>
>>>>> Any idea?
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> http://rochacbruno.com.br
>>>>
>>>
>>>
>>
>>
>> --
>>
>> http://rochacbruno.com.br
>>
>
>
>
> --
>
> http://rochacbruno.com.br
>


Re: [web2py] Re: state of documentation: why pdf?

2010-01-28 Thread Albert Abril
Mengu: why not?
Any new documentation is welcome.

On Thu, Jan 28, 2010 at 5:50 PM, Mengu  wrote:

> massimo,
>
> so, are we able to write a documentation on web2py?
>
> On Jan 28, 5:30 pm, mdipierro  wrote:
> > In the Django world there are books (for sale) and there are other
> > forms of documentations (html, etc).
> > Nobody prevents you to write any documentation you like.
> >
> > My job is write the book and I will concentrate on it. That is how can
> > justify the time I spend on web2py.
> >
> > Massimo
> >
> > On Jan 28, 6:49 am, pistacchio  wrote:
> >
> > > On Jan 28, 12:48 pm, Richard  wrote:
> >
> > > > This was brought up previously and the main obstacle (IIRC) is
> Massimo
> > > > needs publications to justify working on web2py for his university.
> > > > Hopefully a compromise can be reached.
> >
> > > if this is the reason (and it is indeed a valid one), than nobody
> > > would keep us from having both a pdf and a html version. to start off,
> > > the internet version could a reorganization / htmlized version of the
> > > pdf, than we can expand it with examples, cross references, and keep
> > > it up to date with the changes made in various revisions. the
> > > university pdf, on the other hand, could expand and be kept updated
> > > with the material from the html version. my 2 cents.
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] Re: jquery tools

2010-01-30 Thread Albert Abril
It has a very great documentation.
And seems really interesting.

Thanks for the link.

On Sun, Jan 31, 2010 at 1:32 AM, mdipierro  wrote:

> Just for reference in case anybody needs it. The surevy part of kpax
> does sortable lists.
>
> Massimo
>
> On Jan 30, 6:29 pm, Jonathan Lundell  wrote:
> > On Jan 30, 2010, at 2:57 PM, mdipierro wrote:
> >
> > > This could be useful. Perhaps we should consider rewriting examples
> > > using this
> >
> > >http://flowplayer.org/tools/index.html
> >
> > It looks very, very nice.
> >
> > One concern, though, is this from their front page:
> >
> > > Let's face it: do you really need drag-and-drop, resizable windows or
> sortable lists in your web applications? Websites are not desktop
> applications. They are different.
> >
> > It seems to me that sortable lists (or tables) is exactly the kind of
> thing a web2py application is likely to need, and drag & drop could be
> useful as well. It'd be nice to see a good table widget integrated into
> web2py, I think, since it's a natural complement to database work.
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] Re: jquery tools

2010-02-01 Thread Albert Abril
As said at jQuery TOOLS web:

Other JavaScript UI libraries focus on desktop-like features such as
> drag-and-drop, sliders, sortable tables or draggable windows. They are meant
> to build "rich internet applications" (RIAs) such as email clients, task
> managers, CRM software, image organizers or feed viewers. These kind of
> applications are very useful within a small group or when used in intranets;
> however, normal websites are very different in nature. Their purpose is to
> look good and present information. jQuery Tools are built exactly for that
> purpose.


This is more focused for *present the content in an easy and visually
pleasing manner *rather than *make rich internet apps.*
*
*
More info here :


On Sun, Jan 31, 2010 at 11:13 PM, Richard  wrote:

> how about JQuery UI: http://jqueryui.com/demos/
> It handles drag and drop, tabs, sliders, etc, and can be hosted on
> Google:
> http://code.google.com/apis/ajaxlibs/documentation/index.html#jqueryUI
>
>
> On Feb 1, 5:28 am, weheh  wrote:
> > Motto favoloso, MDP. Genio.
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] new spanish user group created

2010-02-02 Thread Albert Abril
Gràcies!!

Me agrego también! :)

On Tue, Feb 2, 2010 at 11:29 PM, Andres Vargas - zodman wrote:

> agregandome :>
>
> On Tue, Feb 2, 2010 at 9:14 AM, Gibran Rodriguez 
> wrote:
> >
> >
> > On Tue, Feb 2, 2010 at 10:11 AM, DenesL  wrote:
> >>
> >> New spanish speaking web2py user group created:
> >>
> >> http://groups.google.com/group/web2py-usuarios/topics
> >
> > gracias!!
> >
> > --
> > Gibran Rodriguez
> > Maemo Developer and Quality Assurance Manager
> > Mobengi (Mobile-Engineering)
> > Helsinki, Finland
> >
> > email: gibran.rodrig...@mobengi.com
> >   brangi...@gmail.com
> > tel: +358453151202
> >  +358445022592
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "web2py-users" group.
> > To post to this group, send email to web...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > web2py+unsubscr...@googlegroups.com
> .
> > For more options, visit this group at
> > http://groups.google.com/group/web2py?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to
> web2py+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] Re: web2py organization - important for consultants !!!

2010-11-12 Thread Albert Abril
http://experts4solutions.com/e4s/default/companies

Local conacts
--> Local contacts!

xD

On Fri, Nov 12, 2010 at 11:06 AM, Paul Gerrard
wrote:

> Here are my comments on the Guidelines page. Some of these are
> duplicates with other peoples' comments - but what the heck. ---> is
> my suggestion
>
>
> ...Our choice of technologies is motivated but a belief in Rapid
> Application Development(RAD)
>--->by
>
> ...application. The occurrence of faled prototypes
>   ->failed
>
> ... A system analyst should be endowed with decision
>  ->systems--->granted
>
> ... It may compromise on aestetic issues and
> --->aesthetic
>
> ... evelopment, but, it is not as an
>   -->remove comma
>
> ... executing the full project project.
>  --->remove repeated 'project'.
>
> ... we dare to say so and start again.
>  > add 'or withdraw from the
> project'?
>
> ... The business model behind FOSS is that
>  ---> define FOSS
>
> Use Open Standards and Interoprability
>   >Interoperability
>
> ... by the Europen Union in its European Interoperability Framework:
>>add a link to the standard?
>
> Use Industry Standard Tehcnologies
>  >Technologies
>
> ... and it plays a singificantrole in the
>   --->significant role
>
> ... therefore less wise-spread. This gives us an hedge vs our
> competitors.
>   --->widespread--->edge over our
> competitors.
>
> ... Portability is crytical to maximize
>   --->critical
>
> ... We build software is portable and can un efficienly on most
> computing Clouds.
> --->add 'that'   --->run
>
> ... optimization may be specific of each individual cloud
> technologies
> -->to
>
> A more general point: There's no mention of Agile approaches - surely
> we need to include that?
>
> Question: Do you register an interest by using the 'Contact Us' page?
> It's not clear, I'm afraid. I'm interested!


Re: [web2py] Re: web2py 1.89.1 is OUT

2010-11-12 Thread Albert Abril
new admin, new welcome, and gae deploy button are, wizard... each day
prettier and easier.
thanks to you, the community.

On Fri, Nov 12, 2010 at 7:04 PM, Bruno Rocha  wrote:

> Great!
>
> each day I like web2py more!
>
> 2010/11/12 mdipierro 
>
> Congratulations to all those how contributed (whose names are in the
>> hg logs) because this is a beautiful version.
>>
>> If your name is not mentioned in the who.html page and you think it
>> should be please assume this is an oversight on my site (I try to keep
>> track but I can do mistakes) so please do not be shy and email me.
>>
>> Massimo
>>
>> On Nov 12, 9:22 am, mdipierro  wrote:
>> > Please give it a try and report any bug.
>> >
>> > 1.89.1
>> > - new admin layout (thanks Branko Vukelic)
>> > - new admin search
>> > - new admin language selector (thanks Yair)
>> > - new Welcome app (thanks Martin Mulone)
>> > - beter wizard
>> > - admin support for DEMO_MODE=True
>> > - admin exposes GAE deployment button (always)
>> > - MENU support None links (thanks Michael Wolfe)
>> > - web2py.py -J for running cron (thanks Jonathan Lundell)
>> > - fixed ~db.table.id on GAE (thanks MicLee)
>> > - service.jsonrpc supports service.JsonRpcException (thanks Matt)
>> > - many small bug fixes.
>>
>
>
>
> --
>
> http://rochacbruno.com.br
>


  1   2   >