Custom Query (121 matches)
Results (49 - 51 of 121)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #95 | invalid | Libyaml svn revision 298 does not compile | xi | michael.the.drummer@… |
| Description |
Current trunk (revision 298) of libyaml does not compile no either my Ubuntu box or on OSX Tiger. There are 2 separate issues. The first is a simple error in yaml_private.h. A Diff of this file is below.
Index: src/yaml_private.h
===================================================================
--- src/yaml_private.h (revision 298)
+++ src/yaml_private.h (working copy)
@@ -1231,7 +1231,7 @@
* The information of a node being emitted.
*/
-struct typedef yaml_node_data_s {
+typedef struct yaml_node_data_s {
/* The node id. */
int id;
/* The collection iterator. */
The second problem I am not sure about. Build log is attached. Michael |
|||
| #183 | invalid | Simple event generated code fails with MemoryError while around 100 bytes yaml is expected as output | xi | matkor |
| Description |
Attached code fails with: Saving to file: 'test.yaml' Traceback (most recent call last):
|
|||
| #168 | invalid | Appengine query models | xi | martinhoarantes@… |
| Description |
Hi, I´m using Google Appengine, language Python. I´d like to know how to query a model. I´m using this code, but the output is miserable: class GerarYAML(webapp.RequestHandler):
def post(self):
user = users.get_current_user()
if user:
formacaos = models.Formacao().all()
experiencias = models.Experiencia().all()
investigacaos = models.Investigacao().all()
distribuicaos = models.Distribuicao().all()
docentes = models.Docente.all()
docentes.filter('user =', users.get_current_user())
for docente in docentes:
for formacao in formacaos:
for experiencia in experiencias:
for investigacao in investigacaos:
for distribuicao in distribuicaos:
formacao.docente = docente.key()
'Nome: %s' % (docente.nome)
'Apelido: %s' % (docente.apelido)
'Unidade: %s' % (docente.unidade)
'Categoria: %s' % (docente.categoria)
'Regime: %s' % (docente.regime)
'Formacao: %s' % (formacao.formAno)
'Grau de Formacao: %s' % (formacao.formGrau)
'Area de Formacao: %s' % (formacao.formArea)
'Instituicao Academica: %s' % (formacao.formInstituicao)
'Classificacao Final: %s' % (formacao.formClassificacao)
yaml.dump(docente, sys.stdout)
yaml.dump(formacao, sys.stdout)
yaml.dump(experiencia, sys.stdout)
yaml.dump(investigacao, sys.stdout)
yaml.dump(distribuicao, sys.stdout)
self.response.headers['Content-Type'] = 'application/yaml'
self.response.headers['Content-Disposition'] = 'filename = my.yaml'
Can someone point out, how can i solve this issue? I´d like to download a file automatically when user submit a button with .yaml format and more or less formatted. |
|||
