Re: [web2py] change web2py application directory

2013-10-30 Thread Loïc ESPERN
Good idea
I will make a try when upgrading my web2py repo...

Thank you
Le 30 oct. 2013 16:01, Richard Vézina ml.richard.vez...@gmail.com a
écrit :

 Loïc, just a thought... How will you manage the upgrade of web2py version?
 If you have only a single repo, you will make symlink in new version of
 web2py applications folder, but then you may face issue with the new
 version that force you to stick with previous version... If you have commit
 change over your trunk you will have to revert...

 I generally just copy my entire repo, that become a clone...

 Richard


 On Wed, Oct 30, 2013 at 10:56 AM, Richard Vézina 
 ml.richard.vez...@gmail.com wrote:

 Great!

 :)

 Richard


 On Wed, Oct 30, 2013 at 10:11 AM, Loïc loic.esp...@gmail.com wrote:

 I have found the problem. Thank you Richard!

 For Windows users who want to move the applications subfolders out of
 web2py directory, the correct syntax is :
 mklink /J TheLinkName ThePath

 mklink /J created a directory junction
 Previously, I used mklink /D (which creates a symlink for a folder) but
 this doesn't work.




 Le mercredi 30 octobre 2013 14:53:31 UTC+1, Richard a écrit :

 http://en.wikipedia.org/wiki/**Hard_linkhttp://en.wikipedia.org/wiki/Hard_link


 On Wed, Oct 30, 2013 at 9:52 AM, Richard Vézina 
 ml.richa...@gmail.comwrote:

 Hmmm... I pretty sure in linux a symlink would work, but in win it is
 different... If I remember there is a difference in hardlink and softlink
 that need to be consider...

 Richard


 On Wed, Oct 30, 2013 at 4:06 AM, Loïc loic@gmail.com wrote:

 Some weeks ago, I tried to create a symlink inside /applications
 folder, but I got an error in modules.
 I was using mklink command on Win7, and my app works fine when
 located inside /applications folder without symlink...

 Below is the ticket I got. Maybe you have an idea?

 Ticket ID

 127.0.0.1.2013-09-25.13-53-37.**347db33f-279e-4ae1-b231-**
 66904661519e
 type 'exceptions.ImportError' No module named
 espern.modules.models_tools
 Version
 web2py™ Version 2.6.3-stable+timestamp.2013.**09.15.17.01.20
 Python Python 2.7.3: C:\Python27\python.exe (prefix: C:\Python27)
 Traceback


 Traceback (most recent call last):
   File C:\Users\loic\web2py\gluon\**restricted.py, line 217, in
 restricted
 exec ccode in environment
   File 
 C:/Users/loic/web2py/**applications/espern/models/db_**calendar.py,
 line 2, in module
 from models_tools import start_datetime, end_datetime
   File C:\Users\loic\web2py\gluon\**custom_import.py, line 86, in
 custom_importer
 return base_importer(pname, globals, locals, fromlist, level)
   File C:\Users\loic\web2py\gluon\**custom_import.py, line 125, in
 __call__
 result = NATIVE_IMPORTER(name, globals, locals, fromlist, level)
 ImportError: No module named espern.modules.models_tools

 Le mardi 29 octobre 2013 21:55:06 UTC+1, Richard a écrit :

 Symbolic link?

 Richard


 On Tue, Oct 29, 2013 at 2:04 PM, wiel wiel...@gmail.com wrote:


 I have a local repository and a web2py installation up. how can I
 change web2py's application directory so that it points to the 
 repository?
 or how can I let web2py use the repository?

 --
 Resources:
 - http://web2py.com
 - http://web2py.com/book (Documentation)
 - 
 http://github.com/web2py/**web2p**yhttp://github.com/web2py/web2py(Source
  code)
 - 
 https://code.google.com/p/**web2**py/issues/listhttps://code.google.com/p/web2py/issues/list(Report
  Issues)
 ---
 You received this message because you are subscribed to the Google
 Groups web2py-users group.
 To unsubscribe from this group and stop receiving emails from it,
 send an email to web2py+un...@**googlegroups.com.

 For more options, visit https://groups.google.com/**grou**
 ps/opt_out https://groups.google.com/groups/opt_out.


  --
 Resources:
 - http://web2py.com
 - http://web2py.com/book (Documentation)
 - http://github.com/web2py/**web2py 
 http://github.com/web2py/web2py(Source code)
 - 
 https://code.google.com/p/**web2py/issues/listhttps://code.google.com/p/web2py/issues/list(Report
  Issues)
 ---
 You received this message because you are subscribed to the Google
 Groups web2py-users group.
 To unsubscribe from this group and stop receiving emails from it,
 send an email to web2py+un...@**googlegroups.com.
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .



  --
 Resources:
 - http://web2py.com
 - http://web2py.com/book (Documentation)
 - http://github.com/web2py/web2py (Source code)
 - https://code.google.com/p/web2py/issues/list (Report Issues)
 ---
 You received this message because you are subscribed to the Google
 Groups web2py-users group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



  --
 Resources:
 - http://web2py.com
 - http://web2py.com/book (Documentation)
 - http://github.com/web2py/web2py 

Re: [web2py] Re: 2 domains served by the same web2py

2013-10-25 Thread Loïc Espern
So, you have define your base routes.py on web2py folder.
Then, do you have set up an app-specific routes.py in your application
folder?

For example, in welcome app you should have a routes.py file containing
something like (just a stupid example from one of my apps) :

# -*- coding: utf-8 -*-
routes_in = (
  (r'/whatever', r'/welcome/default/whatever'),
  (r'/contact', r'/welcome/default/contact_form'),
  (r'/robots.txt', r'/welcome/static/robots.txt'),
)

routes_out = [(x, y) for (y, x) in routes_in]


2013/10/25 António Ramos ramstei...@gmail.com

 I dont get it.


 i tried this with no success
 i created an empty routes.py file in my web2py folder
 then inside i wrote

 # -*- coding: utf-8 -*-

 routes_app = (
 (r'.*?:http?://www.cires.pt:\w* /$anything', r'welcome'),
 (r'.*?:http?://apps.cires.pt/empre:\w* /$anything', r'empre'),
 (r'.*?:http?://apps.cires.pt/erp:\w* /$anything', r'welcome')
 )

 the last tuple i wrote to test if http?://apps.cires.pt/erp would
 redirect to the welcome app. It did not!


 I think this routes.py is being ignored.
 Also i think i dont get it how to use routes.py

 Thank you for your info


 2013/10/25 Paolo Valleri paolo.vall...@gmail.com

  I've this setup on a server:
 routers = dict(
  BASE  = dict(
 default_application='vtraffic',
 default_controller='default',
 root_static = ['favicon.ico', 'robots.txt',
 'google51a05a100c482cad.html', 'sitemap.xml'],
 domains = {'traffic.integreen-life.bz.it':'vtraffic',
  'parking.integreen-life.bz.it':'parkbz'}
 ),
 vtraffic = dict(languages=['en', 'it', 'de']),
 parkbz = dict(languages=['en', 'it', 'de']),
 )


 hope it helps
 Paolo


 On Thursday, October 24, 2013 11:19:05 PM UTC+2, Loïc wrote:

 Considering my previous post, and the routes documentation :
 http://www.web2py.com/books/**default/chapter/29/04/the-**
 core?search=routes#Routes-on-**errorhttp://www.web2py.com/books/default/chapter/29/04/the-core?search=routes#Routes-on-error

 Did you try to set up you routes.py file? Do you have a specific
 problems / error messages? Can you show us some code?

  --
 Resources:
 - http://web2py.com
 - http://web2py.com/book (Documentation)
 - http://github.com/web2py/web2py (Source code)
 - https://code.google.com/p/web2py/issues/list (Report Issues)
 ---
 You received this message because you are subscribed to the Google Groups
 web2py-users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to web2py+unsubscr...@googlegroups.com.

 For more options, visit https://groups.google.com/groups/opt_out.


  --
 Resources:
 - http://web2py.com
 - http://web2py.com/book (Documentation)
 - http://github.com/web2py/web2py (Source code)
 - https://code.google.com/p/web2py/issues/list (Report Issues)
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/rzxeYXHalgI/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: web2py website down

2013-09-29 Thread Loïc Espern
Strange... I can access web2py.com without problem since my previous message
Le 29 sept. 2013 14:08, Gour g...@atmarama.net a écrit :

 On Sun, 29 Sep 2013 00:09:36 -0700 (PDT)
 Loïc loic.esp...@gmail.com wrote:

  Pythonanywhere seems to have some issues this morning. My web-apps
  were down too... Everything seems OK now.

 I still see 'Unhandled Exception...interesting it happens just in
 time when I was considering whether to use something like PythonAnywhere
 instead of my solid webfaction-like shared hosting.


 Sincerely,
 Gour

 --
 Those who are on this path are resolute in purpose,
 and their aim is one. O beloved child of the Kurus,
 the intelligence of those who are irresolute is many-branched.

 http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810


 --
 Resources:
 - http://web2py.com
 - http://web2py.com/book (Documentation)
 - http://github.com/web2py/web2py (Source code)
 - https://code.google.com/p/web2py/issues/list (Report Issues)
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/WxA9OMRgOdo/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: from devel list

2013-09-27 Thread Loïc ESPERN
Depends on what you (or your customers) need...

I developped my little CMS to build a presentation website for a local
organization of firefighters in my city. They hadn't a lot of money to
expend, and they needed something very simple, to edit some webpages
content. Wordpress / Joomla were already overcomplicated for them.

My second customer was a town hall in a little village close to home. They
had same needs : something as simple as possible to edit a few webpages.

And so on...

Finally, of course, a specific app that addresses exactly each customer
needs is ideal for them. But not every customer will accept to pay
thousands of dollars for only a few of basic features.



2013/9/27 Richard Vézina ml.richard.vez...@gmail.com

 CMS is dead!! Yes there is still need for it, but there is plenty of
 already mature and working solution out there. With the frameworks you can
 make much better than any CMS will never be able to do by developping a
 specific app that address the exact needs of your cusomers. For sure it
 requires more skills, but you should master what you do anyway if you are
 serious. For a serious cusomer 5K is a basic check in the Web. For this
 price a good developper can build something really good for the specific
 needs of the client using Frameworks. The resulting app will be easy to
 evolve database centric according to the need of the client. For others
 that only one page on the web there is CMS (WP, Joomla, etc.). But I think
 that trying to build a custom site with CMS as many are doing with plugins
 is a waste of time and money and only lead to a poorly secure web site. I
 had issue with WordPress and plugins in the pass and there is no way to
 know if a plugins is safe or not even if it is largely used.

 I am not saying that creating a good web2py CMS is not useful, but maybe
 just use WP or Joomla with a custom app for client specific need in
 symbiosis is more money wise?? So you have best of both world...

 Richard


 On Fri, Sep 27, 2013 at 9:32 AM, Loïc loic.esp...@gmail.com wrote:

 Shortly, my point is that at the moment web2py is filling specific niche
 of being mostly used in intranet and/or smaller apps, but by having
 general CMS/ecommerce app ala Mezzanine/Cartridge, the usage of the
 framework could exponentially increase considering other 'pros' of the
 framework.

 Personnally when I looked for a CMS build in web2py I didn't find
 anything generic and *simple *enough to build my customers websites.
 Then I decided to develop my own little CMS. (I think many other Web2py
 users are in the same case)
 I released the sources, here, but it seems that only a few people are
 interested in. (I received only one PR for a typo in a fixture file)

 So I think we have a lot of disorganized CMS apps, each used by a few of
 people, but (until now) nobody has accumulate enough contributors to
 compete with something like mezzanine.

 --
 Resources:
 - http://web2py.com
 - http://web2py.com/book (Documentation)
 - http://github.com/web2py/web2py (Source code)
 - https://code.google.com/p/web2py/issues/list (Report Issues)
 ---
 You received this message because you are subscribed to the Google Groups
 web2py-users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to web2py+unsubscr...@googlegroups.com.

 For more options, visit https://groups.google.com/groups/opt_out.


  --
 Resources:
 - http://web2py.com
 - http://web2py.com/book (Documentation)
 - http://github.com/web2py/web2py (Source code)
 - https://code.google.com/p/web2py/issues/list (Report Issues)
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/S9XmLRdmlD8/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: from devel list

2013-09-27 Thread Loïc ESPERN
Neither do I...
However I'm open to ideas/contributions to improve it, step by step

Regards


2013/9/27 Gour g...@atmarama.net

 On Fri, 27 Sep 2013 08:12:37 -0700 (PDT)
 Loïc loic.esp...@gmail.com wrote:

  Yes simple is the word :-)

 :-)

  https://github.com/espern/tiny_website
  http://www.tinywebsite.net/

 Nope, I didn't try it. It was created *after* I already pretty much gave
 up idea to find appropriate web2py-based CMS, but your project looks
 promising, although  Ican't say if it would be possible to enhance it up
 to the level of something like Mezzanine.


 Sincerely,
 Gour

 --
 Never was there a time when I did not exist,
 nor you, nor all these kings; nor in the future
 shall any of us cease to be.

 http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810


 --
 Resources:
 - http://web2py.com
 - http://web2py.com/book (Documentation)
 - http://github.com/web2py/web2py (Source code)
 - https://code.google.com/p/web2py/issues/list (Report Issues)
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/S9XmLRdmlD8/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: Fixed issue 1422 introduced a bug in generic rss views?

2013-05-30 Thread Loïc ESPERN
I'm currently using python 2.7.3
Should I update to the latest 2.7.5 to get this work ?
Le 30 mai 2013 21:57, Sebastian Ortiz Vasquez neoe...@gmail.com a
écrit :

 Hi,

 Yes, in order to get this working, you should also update your cpython
 distribution, check the bug here

 http://bugs.python.org/issue17606

 On Wednesday, May 29, 2013 8:06:07 AM UTC-5, Loïc wrote:

 Hi All,

 It seems that the fix for issue 1422 introduced a bug on generic rss
 views.
 History :
 https://github.com/web2py/**web2py/commit/**
 ea34d1b3a02223e3032d91ad9269d7**0dcfd5f0b6#gluon/serializers.**pyhttps://github.com/web2py/web2py/commit/ea34d1b3a02223e3032d91ad9269d70dcfd5f0b6#gluon/serializers.py

 *First error :*
 On* gluon/serializers.py, line 166 *if feed.get() returns *None *we
 can't call *.encode()*  The following error is raised :

 Error ticket for udsp25 Ticket ID

 127.0.0.1.2013-05-29.14-41-05.**3b4f5f26-486e-4094-b32e-**838d2bedd4e5
 type 'exceptions.AttributeError' 'NoneType' object has no attribute
 'encode' Version  web2py™ Version 2.4.7-stable+timestamp.2013.**
 05.24.17.48.47  Python Python 2.7.3: C:\Python27\python.exe (prefix:
 C:\Python27)  Traceback

 1.
 2.
 3.
 4.
 5.
 6.
 7.
 8.
 9.

 Traceback (most recent call last):
   File C:\Users\MCR\Google Drive\loic\web2py\web2py\**gluon\restricted.py, 
 line 212, in restricted
 exec ccode in environment
   File C:\Users\MCR\Google 
 Drive\loic\web2py\web2py\**applications\udsp25\views\**generic.rss, line 
 10, in module
 from gluon.serializers import rss}}{{=XML(rss(response._vars**))}}
   File C:\Users\MCR\Google 
 Drive\loic\web2py\web2py\**gluon\serializers.py, line 166, in rss
 link=str(feed.get('link', None).encode('utf-8', 'replace')),
 AttributeError: 'NoneType' object has no attribute 'encode'



 *Second error :*
 On* gluon/serializers.py, line 174 *feed.get('entries', []) seems to
 have an encoding problem...

 Error ticket for dommartin25 Ticket ID

 127.0.0.1.2013-05-29.14-49-25.**63d546c2-feb6-43e4-b6f2-**0cb4fc6bb022
 type 'exceptions.**UnicodeDecodeError' 'ascii' codec can't decode byte
 0xc3 in position 9: ordinal not in range(128) Version  web2py™ Version
 2.4.7-stable+timestamp.2013.**05.24.17.48.47  Python Python 2.7.3:
 C:\Python27\python.exe (prefix: C:\Python27)  Traceback

 1.
 2.
 3.
 4.
 5.
 6.
 7.
 8.
 9.

 Traceback (most recent call last):
   File C:\Users\MCR\Google Drive\loic\web2py\web2py\**gluon\restricted.py, 
 line 212, in restricted
 exec ccode in environment
   File C:\Users\MCR\Google 
 Drive\loic\web2py\web2py\**applications\dommartin25\**views\generic.rss, 
 line 10, in module
 from gluon.serializers import rss}}{{=XML(rss(response._vars**))}}
   File C:\Users\MCR\Google 
 Drive\loic\web2py\web2py\**gluon\serializers.py, line 174, in rss
 ) for entry in feed.get('entries', [])])
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 9: 
 ordinal not in range(128)


 Do you know how to fix it?
 Thank you!

  --

 ---
 You received this message because you are subscribed to a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/8ZwVMKS69Sg/unsubscribe?hl=en.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.