Hello all,
I have been using Pylons for more than a year now and I am really happy with it.
I have not shifted to pyramid  yet, so do tell me if that is necessary.
My application uses Pylons 1.0 as the tool framework for the front end.

The logic is in a backend server written in pure Python Twisted library.
So the app in Pylons just makes calls to the rpc functions through the controller and renders the mako templates. I am facing a very strange issue, although it might not e as strange for the experienced users.
The application in question is an accounting software.
After doing about 250 transactions (which correspond to 500 records in the transaction table) the front end written in Pylons gets jammed while displaying all records.

Same is with the case of ledger.
For those who are not understanding what I am refering to, a ledger is a list of all transactions on an account including amount of each transaction (Either Debit or Credit). When there are more than 50 rows in the ledger with 5 columns, Pylons fails to render the mako template. Before you raise the doubt, let me assure you all that the back end server is actually sending all the records in a ready to use grid format to the pylons controller. The controller also receives the data, but when I attach the entire grid to tmpl_context (c) variable, the mako is not rendered. Even in the first case of searching all vouchers for the entire financial year, the data from the core engine (back end ) is actually sent to the controller. But when the grid gets attached to c variable, the template is not rendered. I don't get any error, but the browser stands still waiting for the controller to render some thing.
Is there some size limit for a mako template?
One more strange thing, while I run the front end application with the core logic on local host, the ledger comes all right within a snap. But when both things are hosted on a remote server, the ledger does not work.
I click view ledger and wait and wait and wait.

However the voucher.mako behavior is consistent both on the local machine and remote server, that is , the browser waits but no response. I understand that attaching a grid of 250 rows to a c variable is quite heavy, but does that really matter? Is there some limitation of mako for the amount of data that can be sent across?
Please help with this as I am really confused.

happy hacking.
Krishnakant.

--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to