[TurboGears] How to use callable @validate decorator of TG1 in TG2?

2017-01-25 Thread D R Dinesh Kumar
Hi, I am migrating my TG1 project to TG2 and I have the following code in TG1 form. def create(**kw): form = TableForm(fields=[...], validator = [SchemaValidator1()]) if kw: @validate(form=form) def get_errors(tg_errors=None, **kw): return tg_errors, kw

[TurboGears] Re: How to use callable @validate decorator of TG1 in TG2?

2017-01-25 Thread D R Dinesh Kumar
Can some one help me here please?? Tried a lot of variations in validating the form but failed. Any help is greatly appreciated. On Wednesday, 25 January 2017 06:40:37 UTC-8, D R Dinesh Kumar wrote: > > Hi, > > I am migrating my TG1 project to TG2 and I have the following code in

Re: [TurboGears] Re: How to use callable @validate decorator of TG1 in TG2?

2017-02-02 Thread D R Dinesh Kumar
; form, that should run the validation for the form and give back a > validation error with the details of what went wrong. > > On Thu, Jan 26, 2017 at 3:44 AM, D R Dinesh Kumar > wrote: > >> Can some one help me here please?? Tried a lot of variations in >> validating the

[TurboGears] How to increase thread_pool and socket_queue_size in TG2?

2017-03-16 Thread D R Dinesh Kumar
Hi All, We are migrating our project from TG1 to TG2. We had the following setting in our config (.cfg) file to increase thread pool and queue size. server.thread_pool = 70 server.socket_queue_size =50 but how to do the same in TG2? I don't find any such option that new config supports. Please

Re: [TurboGears] How to increase thread_pool and socket_queue_size in TG2?

2017-03-17 Thread D R Dinesh Kumar
- cherrypy which has a threadpool too, can be enabled with "use = > egg:gearbox#cherrypy" > > Using wsgiref on production is usually discouraged apart for very > controlled environments. It's not optimised for speed and spawns unlimited > concurrent threads until

Re: [TurboGears] How to increase thread_pool and socket_queue_size in TG2?

2017-03-21 Thread D R Dinesh Kumar
Hi Alessandro, Thank you. This is helpful. With TG1 cherrypy used to reserve 5g of virtual memory for numthreads = 70 whereas in, TG2 it takes 1g only. With Regards, Dinesh. On Friday, 17 March 2017 02:07:22 UTC-7, Alessandro Molina wrote: > > > > On Fri, Mar 17, 2017 at 9:15 AM

[TurboGears] help required on hosting tg2 app on uwsgi

2017-03-22 Thread D R Dinesh Kumar
Hi All, I am trying to host tg2 app on uwsgi. my uwsgi.ini file contains: --- [uwsgi] module = wsgi:application master = true processes = 1 socket = app.sock chmod-socket = 664 vacuum = true die-on-term = true lazy = true and wsgi.py contains:

[TurboGears] Re: help required on hosting tg2 app on uwsgi

2017-03-22 Thread D R Dinesh Kumar
ds, Dinesh. On Wednesday, 22 March 2017 19:41:51 UTC-7, D R Dinesh Kumar wrote: > > Hi All, > > I am trying to host tg2 app on uwsgi. > > my uwsgi.ini file contains: > --- > [uwsgi] > module = wsgi:application > master = true > proces

[TurboGears] Re: help required on hosting tg2 app on uwsgi

2017-03-22 Thread D R Dinesh Kumar
-2.7/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5dd3) [0x7606bab3] /depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x8c9) [0x7606d9a9] *** end of backtrace *** Segmentation fault With Regards, Dinesh. On Wednesday, 22 March 2017 21:06:21 UTC-7, D R Dinesh Kumar wrote: > &g

Re: [TurboGears] Re: help required on hosting tg2 app on uwsgi

2017-03-23 Thread D R Dinesh Kumar
> If you receive a segfault it's probably better to get in touch with the > UWSGI mailing list. > Even wrongly configured things shouldn't lead to segfaults, so you might > be facing some bug or packaging issues. > > > > > On Thu, Mar 23, 2017 at 7:24 AM,

Re: [TurboGears] Re: help required on hosting tg2 app on uwsgi

2017-03-25 Thread D R Dinesh Kumar
The OpenSSL versions are different between python and uwsgi. Uwsgi took system OpenSSL version which is different from python. Had to re-install python with required OpenSSL version by making changes to Modules/setup.dist and Modules/setup files. If required, even setup.py also might need change

[TurboGears] Contribution Involvement

2017-03-25 Thread D R Dinesh Kumar
Hi Alessandro, Is the given email ID correct? -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To unsubscribe from this group and stop receiving emails from it, send an email to turbogears+unsubscr...@googlegroups.com. To post to this group, send

[TurboGears] elixir with turbogears2

2017-05-03 Thread D R Dinesh Kumar
Hi All, We were using Elixir with TG1 and we have recently migrated to TG2. Finding difficulty in hooking the TG2 session to Elixir session and metadata. we were using the following statement in TG1 for the hook: from turbogears.database import metadata as __metadata__ from elixir import sqlalc

[TurboGears] Re: elixir with turbogears2

2017-05-04 Thread D R Dinesh Kumar
ere is a lot of code already built on top of Elixir. Not sure how difficult to move this to sqlalchemy. But surely we need to give it a try. This point from you, is really helpful. With Regards, Dinesh. On Wednesday, 3 May 2017 23:51:56 UTC-7, D R Dinesh Kumar wrote: > > Hi All, > &g

[TurboGears] Re: elixir with turbogears2

2017-05-04 Thread D R Dinesh Kumar
with TG1 though. I haven't changed wait_timeouts and any other variable in my DB. With Regards, Dinesh. On Wednesday, 3 May 2017 23:51:56 UTC-7, D R Dinesh Kumar wrote: > > Hi All, > > We were using Elixir with TG1 and we have recently migrated to TG2. > Finding difficulty i

[TurboGears] Re: elixir with turbogears2

2017-05-04 Thread D R Dinesh Kumar
reciated. With Regards, Dinesh. On Wednesday, 3 May 2017 23:51:56 UTC-7, D R Dinesh Kumar wrote: > > Hi All, > > We were using Elixir with TG1 and we have recently migrated to TG2. > Finding difficulty in hooking the TG2 session to Elixir session and > metadata. > > we were u

[TurboGears] Admin controller issue with ZTE

2017-05-11 Thread D R Dinesh Kumar
Hi All, I am using the following statement to create DB session maker = sessionmaker(autoflush=True, autocommit=False, extension=ZopeTransactionExtension()) DBSession = scoped_session(maker) and in my app, I have created model view admin controllers for user,group etc. whe

[TurboGears] Re: TG2 / Elixir Transaction Issue

2017-05-11 Thread D R Dinesh Kumar
Hi Erisian, have you found the solution for this? I got stuck with the same issue. Please help. With Regards, Dinesh. On Wednesday, 2 March 2011 16:48:21 UTC-8, erisian wrote: > > I used to be a serious user of Elixir / SQLAlchemy a few years ago and > really liked it. So when I needed to de

[TurboGears] Re: elixir with turbogears2

2017-05-11 Thread D R Dinesh Kumar
help or resolve it. With Regards, Dinesh. On Wednesday, 3 May 2017 23:51:56 UTC-7, D R Dinesh Kumar wrote: > > Hi All, > > We were using Elixir with TG1 and we have recently migrated to TG2. > Finding difficulty in hooking the TG2 session to Elixir session and > metadata. >

[TurboGears] can I have more links in Admin Controller?

2017-05-19 Thread D R Dinesh Kumar
Hi, I see that only models can be passed to Admin controller which displays them as links in admin page. Can also have some custom made links at /admin page? My code looks like this: class RootController(BaseController): admin = AdminController([model.User, model.Group, ...], DBSession)

[TurboGears] Re: Admin controller issue with ZTE

2017-05-19 Thread D R Dinesh Kumar
issue after that. Will test this again after some time!! Thanks. With Regards, Dinesh. On Thursday, 11 May 2017 10:30:45 UTC-7, D R Dinesh Kumar wrote: > > Hi All, > > I am using the following statement to create DB session > > maker = sessionmaker(autoflush=True

[TurboGears] Re: can I have more links in Admin Controller?

2017-05-24 Thread D R Dinesh Kumar
Hi Alessandro, Thank you for the response. I have used custom_template option to load my own template where it has links to the admin generated pages. This way I could manage my custom links and also admin links. With Regards, Dinesh. On Friday, 19 May 2017 01:41:07 UTC-7, D R Dinesh Kumar

[TurboGears] Is there a way to start tg from a different Controller rather than default RootController?

2017-05-24 Thread D R Dinesh Kumar
Hi. We would like to manage ShutDown situation for our application where we would like to divert all calls to the app to default/shutdown.html page when 'ShutDown' is enabled in .ini file. For Ex: in development.ini file app.shutdown = True app.shutdown_msg

[TurboGears] Re: Is there a way to start tg from a different Controller rather than default RootController?

2017-05-25 Thread D R Dinesh Kumar
Thank you Alessandro for the pointer. Will try this out. With Regards, Dinesh. On Wednesday, 24 May 2017 16:29:25 UTC-7, D R Dinesh Kumar wrote: > > Hi. > > We would like to manage ShutDown situation for our application where we > would like to divert all calls to the