Re: [pylons-discuss] Best practices for running Pyramid (docker) and nginx (host) deployment

2021-12-13 Thread Andreas Kaiser
If the other solutions don't work for you, you can also set ``url_scheme`` in your config, for example: [server:main] use = egg:waitress#main port = 6543 url_scheme = https HTH, Andreas On 14 Dec 2021, at 1:21, Jens Troeger wrote: Hello, I’ve seen some

Re: [pylons-discuss] testing users with webtest

2021-02-09 Thread Andreas Kaiser
On 9 Feb 2021, at 1:38, zsol...@gmail.com wrote: I'd like to use webtest to test my application's responses with an authenticated user. I tried everything with mocking, monkeypatch, etc. but couldn't figure out. I see that there is testing_securitypolicy but I have no idea how could I

Re: [pylons-discuss] Using deform and filedepot together in a Pyramid app

2020-09-30 Thread Andreas Kaiser
Hi Luke, unfortunately I don’t have the time to look up the details right now, but Kotti (https://github.com/Kotti/Kotti/) has been using Deform and Filedepot for years. It has an additional layer (for historical reasons) with its ``File`` resource type, so that may not translate 1:1 to your

Re: [pylons-discuss] Rendering a deform form with a template, but placing nodes inside of HTML tags

2018-07-17 Thread Andreas Kaiser
https://docs.pylonsproject.org/projects/deform/en/master/retail.html might be what you're looking for. IIRC the button is also just an ordinary field of the form, which can be rendered the same way. HTH, Andreas On 17 Jul 2018, at 13:17, Tom Andrews wrote: I'm trying to construct a

Re: [pylons-discuss] deform and multicolumn forms

2017-06-12 Thread Andreas Kaiser
On 11 Jun 2017, at 19:13, Carlos BG wrote: I have to translate a desktop application to web application. I want to do it in pyramid and I'm new to web programming. The forms must be identical...or almost identical. I have not found how to make a complex multicolumn form in deform. For example,

Re: [pylons-discuss] Which Pyramid based Development Environment/Framework should I be considering?

2015-05-20 Thread Andreas Kaiser
On 18 May 2015, at 22:25, Randy Syring wrote: Some of my considerations: - Has to be SQLAlchemy based. - Would prefer deform (I think) for forms, but might be persuaded otherwise. - Track record of good development decisions and actively being developed. - Big enough community that it's not

Re: [pylons-discuss] Forms and Validation With Deform ???

2015-05-11 Thread Andreas Kaiser
On 11 May 2015, at 11:02, Laurent DAVERIO wrote: The only thing you want to avoid is the `deform_bootstrap` package, which was never ported to Bootstrap 3: https://pypi.python.org/pypi/deform_bootstrap Right. deform-bootstrap also came from the Kotti ecosystem and was basically nothing more

Re: [pylons-discuss] Forms and Validation With Deform ???

2015-05-11 Thread Andreas Kaiser
On 11 May 2015, at 10:08, Sascha Gottfried wrote: I know that kotti substance-d use deform extensively. I really like the demo site for deform2.0a2 http://deform2demo.repoze.org/ But deform2 did not change much from alpha since 18 months. https://pypi.python.org/pypi/deform Maybe I missed

[pylons-discuss] Announcement: Kotti 1.0.0 final released

2015-02-20 Thread Andreas Kaiser
On behalf of the Kotti community I'm excited to announce the release of Kotti 1.0.0 final. Kotti is a high-level, Pythonic web application framework based on Pyramid, SQLAlchemy and Bootstrap 3. It includes an extensible Content Management System called the Kotti CMS. Kotti is particularly

Re: [pylons-discuss] DBSession and testing - transaction per test

2014-04-08 Thread Andreas Kaiser
On 8 Apr 2014, at 15:19, Alexey Kuchm wrote: I've lost my working day trying to setup basic thing: *Database for unit testing* What I need: 1) Functional tests, based on TestApp, full web-stack. This works OK. Due to *pyramid_tm*, transacion is either committed or rolled back 2)

Re: [pylons-discuss] Pyramid 1.5a2 released.

2013-09-27 Thread Andreas Kaiser
Hi Carsten, On 27.09.2013, at 10:20, Carsten Senger sen...@rehfisch.de wrote: If I install Kotti (or pyramid alone) with pip I automatically get 1.5a2 and not the stable version. So I went and pinned pyramid but thought it might be a packaging bug. this is how pip 1.4 works: it always

Re: Pyramid Security

2013-09-13 Thread Andreas Kaiser
On 13.09.2013, at 11:36, Biswas, Pinakee pina...@vvidiacom.com wrote: I would really appreciate if you could help me with the above and provide me some info which clearly states the flow of the authentication process using pyramid security and takes me step by step. Chris McDonough's talk

Re: Calling get_current_registry() during Pyramid startup

2013-01-29 Thread Andreas Kaiser
On 29.01.2013, at 09:24, Andreas Jung li...@zopyx.com wrote: I have a method def notify(text): settings = pyramid.threadlocal.get_current_registry().settings host = settings.get() which works fine when called from a view. However when I call this method during the startup

Re: recommend a wysiwyg editor for a pyramid project?

2012-11-08 Thread Andreas Kaiser
On 08.11.2012, at 01:04, Carlos de la Guardia carlos.delaguar...@gmail.com wrote: Deform uses TinyMCE for the RichText widget. kotti_tinymce adds a basic file / image upload plugin to TinyMCE / deform's RichTextWidget. It also (indirectly) has basic (server side) image resizing support. By

Re: How to handle multiple views in one page

2012-11-07 Thread Andreas Kaiser
On 07.11.2012, at 22:21, Marten lehm...@cnm.de wrote: I searched a lot through documentation and examples, but I couldn't find any best practise on how to tie together a bunch of views to one page. You'll surely know dashbords that contain dozends of containers like load graphs, contact

Re: Distinguishing between view names

2012-06-15 Thread Andreas Kaiser
Am 15.06.2012 um 21:11 schrieb Theron Luhn: A lot of times I use the same view for both editing items and making new items. How can I determine which view name is being called? I know I'm not explaining myself very well, so to talk in code: @view_config(context=Context, name='new',

Re: Pylons/Pyramid Performance

2012-06-06 Thread Andreas Kaiser
Am 06.06.2012 um 13:23 schrieb Biswas, Pinakee: Some of the aspects of the design I have been pondering upon are also: · How do I handle the threads, configure them etc. at optimum level? Do I really need to bother about them with Pylons/Pyramid? The platform is Linux. ·

Re: deform_bootstrap 0.1 released

2012-03-13 Thread Andreas Kaiser
Am 13.03.2012 um 19:01 schrieb Daniel Nouri: On Mon, Mar 12, 2012 at 6:18 PM, Benjamin Sims benjamins...@gmail.com wrote: Hi, this looks great - I've recently been looking into bootstrap so this is very timely for me. I note however that it is not possible to use use_ajax with the package.

Re: deform_bootstrap 0.1 released

2012-03-13 Thread Andreas Kaiser
Am 13.03.2012 um 19:01 schrieb Daniel Nouri: On Mon, Mar 12, 2012 at 6:18 PM, Benjamin Sims benjamins...@gmail.com wrote: Hi, this looks great - I've recently been looking into bootstrap so this is very timely for me. I note however that it is not possible to use use_ajax with the package.