Custom Query (423 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (43 - 45 of 423)

Ticket Resolution Summary Owner Reporter
#456 fixed Iterable holders Maxim Reznik
Description

We need more general iteration in XML templates then JSON_Array only.

I propose to add iteration function to League.Holder.

#454 fixed template engine raises PROGRAM_ERROR Maxim Reznik
Description

When I run template parser (as descibed in XML/Templates):

      --  Process template.
      
      Reader.Parse;

I get error:

Exception name: PROGRAM_ERROR Message: XML.Templates.Streams.XML_Stream_Element_Vectors.Append: attempt to tamper with cursors (vector is busy)

Here is backtrace:

#0  <__gnat_debug_raise_exception> (e=0xa1ff00 <program_error>) at s-excdeb.adb:43
#1  0x00007f4816be5e31 in ada.exceptions.complete_occurrence (x=x@entry=0x7f480c037290) at a-except.adb:924
#2  0x00007f4816be5e3d in ada.exceptions.complete_and_propagate_occurrence (x=x@entry=0x7f480c037290) at a-except.adb:933
#3  0x00007f4816be5e92 in <__gnat_raise_exception> (e=0xa1ff00 <program_error>, message=...) at a-except.adb:975
#4  0x00007f48148a9327 in xml.templates.streams.xml_stream_element_vectors.append (count=1, new_item=..., container=...) at /home/max/net/gnat-gpl-2015/lib/gcc/x86_64-pc-linux-gnu/4.9.3/adainclude/a-convec.adb:476
#5  0x00007f48148c00a9 in xml.templates.streams.xml_stream_element_vectors.append (count=1, new_item=..., container=...) at /home/max/net/gnat-gpl-2015/lib/gcc/x86_64-pc-linux-gnu/4.9.3/adainclude/a-convec.adb:487
#6  xml.templates.processors.characters (self=..., text=..., success=<optimized out>) at /home/max/net/matreshka/source/xml/templates/xml-templates-processors.adb:101
#7  0x00007f48148bbf72 in xml.templates.processors.process_stream (self=..., stream=..., success=success@entry=true) at /home/max/net/matreshka/source/xml/templates/xml-templates-processors.adb:428
#8  0x00007f48148cbbe1 in xml.templates.processors.end_element (self=..., namespace_uri=..., local_name=..., qualified_name=..., success=true) at /home/max/net/matreshka/source/xml/templates/xml-templates-processors.adb:271
#9  0x00007f48176cdbd0 in xml.sax.simple_readers.callbacks.call_end_element (self=..., namespace_uri=<optimized out>, local_name=local_name@entry=0x7f480c033a40, qualified_name=qualified_name@entry=0x7f480c032be0) at /home/max/net/matreshka/source/xml/sax/xml-sax-simple_readers-callbacks.adb:172
#10 0x00007f48176db74e in xml.sax.simple_readers.parser.actions.on_end_tag (self=..., symbol=<optimized out>) at /home/max/net/matreshka/source/xml/sax/xml-sax-simple_readers-parser-actions.adb:414
#11 0x00007f4817662f12 in xml.sax.simple_readers.parser.yyparse (self=...) at /home/max/net/matreshka/source/xml/sax/xml/xml-sax-simple_readers-parser.adb:922
#12 0x00007f48176abe27 in xml.sax.simple_readers.parse (self=...) at /home/max/net/matreshka/source/xml/sax/xml-sax-simple_readers.adb:352
#13 0x00007f4814c53b34 in servlets.main_menu.render (self=..., user=..., menu=...) at /home/max/net/beard/source/web/servlets/servlets-main_menu.adb:295
#14 0x00007f4814c44834 in servlets.main_menu.do_get (self=..., request=..., response=...) at /home/max/net/beard/source/web/servlets/servlets-main_menu.adb:124
#15 0x00007f481814c457 in matreshka.servlet_containers.dispatch (self=0xa20680 <servlet.application.container>, request=0x7f4815a93b70, response=0x7f4815a94088, <selfL>=0) at /home/max/net/matreshka/source/web/spikedog/core/matreshka-servlet_containers.adb:192
#16 0x000000000042e63a in matreshka.servlet_servers.aws_servers.request_callback (request=...) at /home/max/net/frame/source/servlet/aws/matreshka-servlet_servers-aws_servers.adb:126
#17 0x000000000050d273 in aws.dispatchers.callback.dispatch (dispatcher=..., request=...) at /home/max/net/aws/src/core/aws-dispatchers-callback.adb:58
#18 0x00000000005be77c in aws.server.http_utils.answer_to_client.build_answer () at /home/max/net/aws/src/core/aws-server-http_utils.adb:187
#19 0x00000000005bcf06 in aws.server.http_utils.answer_to_client (http_server=..., line_index=3, c_stat=..., socket_taken=false, will_close=false) at /home/max/net/aws/src/core/aws-server-http_utils.adb:339
#20 0x000000000069666e in aws.server.protocol_handler (la=...) at /home/max/net/aws/src/core/aws-server-protocol_handler.adb:235
#21 0x0000000000693174 in aws.server.line (<_task>=0x1e6a200) at /home/max/net/aws/src/core/aws-server.adb:319
#22 0x00007f4817083b22 in system.tasking.stages.task_wrapper () from /home/max/net/frame/.objs/aws_server/../../../gnat-gpl-2015/lib/gcc/x86_64-pc-linux-gnu/4.9.3/rts-native/adalib/libgnarl-2015.so

Template:

<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml' xmlns:mtl='http://forge.ada-ru.org/matreshka/template'>
  <head>
    <title>Семантична база даних</title>
    <link rel='stylesheet' type='text/css' href='/static/index.css'/>
    <link rel='icon' type='image/png' href='favicon.png'/>
  </head>
  <body>
    ${user}
    <div style="clear: both;"/>
    <div class="main-form">
      <ul>
        <mtl:for expression="item of menu">
          <li>
            <a href="">${item.text}</a>
            <mtl:if expression="item.is_submenu">
              <ul class="hidden">
                <mtl:for expression="subitem of item.submenu">
                  <li><a href="">${subitemitem.text}</a></li>
                </mtl:for>
              </ul>
            </mtl:if>
          </li>
        </mtl:for>
       </ul> 
    </div>
  </body>
</html>
#451 invalid Wrong names in installed gpr files Maxim Reznik
Description

After fixing #449 we have wrong (incompatible at least) gpr files installed with gprinstall:

$PREFIX/share/gpr/matreshka_league.gpr

was

$PREFIX/lib/gnat/matreshka/league.gpr

Note: See TracQuery for help on using queries.