[Gambas-devel] gambas wiki db scheme

Benoît Minisini gambas at ...1...
Sun Sep 23 01:56:10 CEST 2012


Le 23/09/2012 01:42, Sebastian Kulesz a écrit :
> On Sat, Sep 22, 2012 at 9:28 AM, Benoît Minisini
> <gambas at ...1...> wrote:
>> Le 22/09/2012 03:54, Sebastian Kulesz a écrit :
>>>
>>> I already finished moving the header. I will start with the "wiki"
>>> part as soon as i get the dump, i'm currently doing the admin page and
>>> implementing the user management functions, along with the comments
>>> system.
>>>
>>
>> The dump is on the way...
>
> The dump worked just fine, but i need some pages that cover any
> variant that the current wiki can handle, like titles for v2 and v3,
> the components url (maybe the gb component), etc.

Normally you got the entire database, except the undo table. I can't 
give you more.

>
> The header should be set using the Response.ContentType property, not
> by directly printing it.

A WebPage sends HTML, so the content type is "text/html". As it is the 
default Response.ContentType, nothing is set. So what are you talking 
about? Why do you want to change it?

> Besides. almost all template systems provide
> both options, to either return the contents of the template rendered
> (to be appended to other content) or to dispatch it directly to the
> user.

This is another point. But I'm on releasing a new version, so I can fix 
bugs, but not change everything.

Why do you want to do something else than printing with WebPage?

>
> I managed to fix the problem though, but i'm having some issues. The
> <<--CONTENTS-->> and <</WebPage>> tags don't seem to work. Anything
> after an include statement seems to be omitted.

I need some examples. Mine work!

>
> Also, debugging a webpage is *really* difficult. If there is an error,
> the buffer is flushed anyway, until the line where the error happened.
> If the error is before the headers are sent , then only this line is
> shown in the apache's error_log file:
>
> [Sat Sep 22 19:09:55 2012] [error] [client 127.0.0.1] Premature end of
> script headers: doc.cgi.gambas

You can catch the error and print something in a log file. This is all 
you can do at the moment. This is the reason I want to try to embed a 
HTTP server and debug scripts directly from the IDE too!

Regards,

-- 
Benoît Minisini




More information about the Devel mailing list