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
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
; 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
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
- 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
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
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:
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
-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
> 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,
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
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
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
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
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
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
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
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
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.
>
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)
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
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
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
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
24 matches
Mail list logo