[pylons-discuss] Re: docs down?

2020-04-23 Thread Sydo Luciani
Cloudflare had network and DNS problem. https://www.cloudflarestatus.com/ Philadelphia services seems to be rerouted, but the reroute seems not working. Philadelphia, United States - (PHL)Re-routed Someone needs to contact Cloudflare otherwise they think it is fixed. On Thursday, 23

Re: [pylons-discuss] Generating URL using request.resource_url

2020-04-23 Thread Sydo Luciani
and thus know how to get > to where you are right now. > > request.resource_url(request.context, '@@create') > > Bert JW Regeer > > On Apr 22, 2020, at 14:05, Sydo Luciani > wrote: > > Back to my original post, fixed the problem with stripping leading slash >

Re: [pylons-discuss] Re: Generating URL using request.resource_url

2020-04-22 Thread Sydo Luciani
stripped_path, '@@create') }} "> Please let me know if there is more elegant(Pyramid) way solution. On Wednesday, 22 April 2020 11:01:22 UTC-5, Sydo Luciani wrote: > > Application is using hybrid of traversal and URL dispatch. > Here is the code: > https://github.com/Systemat

Re: [pylons-discuss] Re: Generating URL using request.resource_url

2020-04-22 Thread Sydo Luciani
est.Request.route_url > > ? > > --steve > > > On 4/22/20 at 2:18 AM, sydo@gmail.com (Sydo Luciani) > pronounced: > > >root + path be the resource but passing request.url as resource > >throws error: > >href="{{ request.resource_url(req

[pylons-discuss] Re: Generating URL using request.resource_url

2020-04-22 Thread Sydo Luciani
2020 04:11:00 UTC-5, Sydo Luciani wrote: > > tried > href="{{ request.resource_url(request.url , '@@create') }}"> > but didn't work and got below error: > path = [loc.__name__ or '' for loc in lineage(resource)] > AttributeError: 'str' object has no

[pylons-discuss] Re: Generating URL using request.resource_url

2020-04-22 Thread Sydo Luciani
root, request.path , '@@create') }}"> that I got double slash problem. Need to generate full URL and then append @@create. root, request.path , '@@create') }}"> On Wednesday, 22 April 2020 02:42:44 UTC-5, Sydo Luciani wrote: > > This code: > href="{{ request.res

[pylons-discuss] Generating URL using request.resource_url

2020-04-22 Thread Sydo Luciani
This code: href="{{ request.resource_url(request.root, request.path , '@@create') }}"> Generates below URL: https://domain_name.com:6543/%2FDir_1%2FDir_2/@@create After domain_name:port, there is a '/' and a '%2F' which represents another

Re: [pylons-discuss] Recommendation for a Python-based wiki

2020-04-19 Thread Sydo Luciani
What do you think of : https://github.com/SystematicD/pyramid_wiki Flat file based documentation powered by Pyramid traversal and Deform. On Saturday, 2 September 2017 00:52:13 UTC-5, Steve Piercy wrote: > > Wikis are crapware. They're a headache to maintain. > > The Pylons Project

Re: [pylons-discuss] Deform demo site : The "click to show in context" link returns 404 Not Found

2020-04-12 Thread Sydo Luciani
e/demo. The demo code can be found here: > > https://github.com/Pylons/deformdemo > > > > > On Apr 11, 2020, at 20:37, Sydo Luciani > wrote: > > > > > > > > > The "click to show in context" link in Deform demo site is broken: >

[pylons-discuss] Deform demo site : The "click to show in context" link returns 404 Not Found

2020-04-11 Thread Sydo Luciani
The "click to show in context" link in Deform demo site is broken: http://demo.substanced.net/deformdemo/richtext/ Code (click to show in context) -- You received this message because you are subscribed to the Google Groups

Re: [pylons-discuss] Python 3.8 and __init__.py in views directory

2020-03-25 Thread Sydo Luciani
; under Python3 they are in a `__pycache__` directory and > versioned to the interpreter. > > you probably had a `views/__pycache__/__init__.cpython-35.pyc` file, which > python 3.5 picked up but 3.7 and 3.8 will not. > > > On Wednesday, March 25, 2020 at 2:06:26 PM UTC

Re: [pylons-discuss] Python 3.8 and __init__.py in views directory

2020-03-25 Thread Sydo Luciani
, Michael Merickel wrote: > Sorry can you give more context? Did you delete the __init__.py in your > views folder? If so, I would expect some issues. > > On Mar 24, 2020, at 22:12, Sydo Luciani wrote: > > No problem with python 3.5 environment, but missing views/__init__.py, >

[pylons-discuss] Python 3.8 and __init__.py in views directory

2020-03-24 Thread Sydo Luciani
No problem with python 3.5 environment, but missing views/__init__.py, throws below errors in Python 3.8. Even including relative path to view module in config.scan('.module_name/views/view_module') has no effect. Error starts with: pyramid.httpexceptions.HTTPNotFound: The resource could not

Re: [pylons-discuss] Serving a Single File from the Root

2020-03-14 Thread Sydo Luciani
the open calls to use open(..., 'rb') and it should work. > > On Mar 14, 2020, at 11:16, Sydo Luciani wrote: > > Procedure to serve favicon.ico from root: > > https://docs.pylonsproject.org/projects/pyramid-cookbook/en/latest/static_assets/serving-files.html#serving-a-single-file-fro

[pylons-discuss] Serving a Single File from the Root

2020-03-14 Thread Sydo Luciani
Procedure to serve favicon.ico from root: https://docs.pylonsproject.org/projects/pyramid-cookbook/en/latest/static_assets/serving-files.html#serving-a-single-file-from-the-root Throws error: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9e in position 34: invalid start byte Apparently