I was wondering about this. I tried to search the group but didn't find
anything relevant. Took a look at the source code and it seemed like I
could use in a module which is called to produce a string of Javascript on
demand of an Ajax routine.
Beforehand, I save the global "cache" var in my
Yes, of course you're right. The actual code is generated by this
monstrosity:
@staticmethod
def make_toolbar(buttons, id, opt):
#tb = CAT()
tb = DIV(_id=id, _class=opt.w_toolbar_cls,_style="padding:0 0 0 5px;")
for title, action, href_fcn, key in buttons:
if isinstance(actio
>
> The particular code being pickled, if it matters, looks like this:
>>
>> > data-toggle="dropdown">
>> Male
>>
>>
>
Also, just to clarify, the above is not the code being pickled. The above
is the HTML generated by executing the view -- it is just a string and
would not invoke gluon.html.
I'm guessing the button is generated via form.add_button(), which uses
TAG['button'], which generates a __tag_div__ object, which is pickled with
the custom TAG_pickler function:
def TAG_pickler(data):
d = DIV()
d.__dict__ = data.__dict__
marshal_dump = pickle.dumps(d, pickle.HIGHEST
Can you print out the raw SQL via ._select() so we can see exactly what is
being sent to the database when the error occurs?
On Monday, July 30, 2018 at 5:39:35 AM UTC-4, Rahul wrote:
>
> Okay I followed everyones instructions
> I installed psycopg2 and the application is using this by default.
On Monday, July 30, 2018 at 1:36:28 PM UTC-4, GS wrote:
>
> Hi Anthony,
>
> I am using the below
>
> Header=[‘helper’]
> And then passing header=header in the function to display the table.
>
What function? Can you show the full code?
--
Resources:
- http://web2py.com
- http://web2py.com/book
Hi Anthony,
I am using the below
Header=[‘helper’]
And then passing header=header in the function to display the table.
Let me know if you need any other information.
Thanks
On Mon, 30 Jul 2018 at 10:41 PM, Anthony wrote:
> Can you show the code you are using to produce the table?
>
>
> On M
Can you show the code you are using to produce the table?
On Monday, July 30, 2018 at 12:50:57 AM UTC-4, GS wrote:
>
> Hi Guys,
>
> I am using the Virtual fields for displaying some data.
> However, I am not able to get a Table header to be displayed for the
> Virtual Field.
> I have used label f
Okay I followed everyones instructions
I installed psycopg2 and the application is using this by default. However
it is giving me the same errors I got before. I did not earlier use "%s" %
but in the example I provided I just gave it a try as somewhere I think it
referred to a string issue.
1
I'm sure this is a consequence of Py3 compatibility, but I"ve noticed
several places where strings are now unicode and it plays havoc with JSON
translation. I'm trying to convert the output of database queries into
JSON and the resulting strings have the shape of:
u'this is a unicode string'
10 matches
Mail list logo