Re: [SMW-devel] ask query format=template

2007-12-03 Thread Thomas Bleher
* cnit <[EMAIL PROTECTED]> [2007-12-03 16:24]: > May I suggest another kind of ask format? Sometimes it's desirable to > get only a simple count of rows instead of the query result rows. So, > if there's a 5 rows in the query result, ask format="count" would > return a number 5. It may be useful to

Re: [SMW-devel] ask query format=template

2007-12-03 Thread cnit
> I expect that this works now with #ask, *BUT* there already is a format for > what you want to do. It is called "embedded" and it can be customised with > the following parameters: > * embedformat = {h1, h2, h3, ol, ul} (how to format the result list) > * embedonly = true (whether to leave away

Re: [SMW-devel] ask query format=template

2007-11-30 Thread Markus Krötzsch
On Montag, 12. November 2007, cnit wrote: > > Yes, I could use this as well. But this feature comes only after the > > implementation of {{#ask...}} (since this change will change the > > interaction of inline queries with MediaWiki's table creation). > > Can the implementation of {{#ask}} make pos

Re: [SMW-devel] ask query format=template

2007-11-23 Thread Markus Krötzsch
Good to hear that at least the XML-import+SMW-refresh finally worked. The design of MediaWiki is very fragile in many places, and I fear that there are much more non-common cases where extensions do not work as expected (e.g. due to the combination of global and non-global objects everywhere in

Re: [SMW-devel] ask query format=template

2007-11-12 Thread cnit
> Yes, I could use this as well. But this feature comes only after the > implementation of {{#ask...}} (since this change will change the interaction > of inline queries with MediaWiki's table creation). Can the implementation of {{#ask}} make possible such trick that I've unsuccessfully tried to p

Re: [SMW-devel] ask query format=template

2007-11-12 Thread cnit
> Did you ever run SMW_refreshData after the import? Of course not. That's because I am using XML import instead of standard way described in INSTALL, and also I believe that moving from SMW 0.6 to SMW 0.7 had filled smw_attributes properly during the XML import (though it was many months ago, so I

Re: [SMW-devel] ask query format=template

2007-11-09 Thread Sergey Chernyshev
Yes, I ran SMW_refreshData twice - first with -p and second without. The problem I ran into is that Property page complained like this: PHP Fatal error: Call to a member funct ion getText() on a non-object in //extensions/SemanticMediaWiki /includes/articlepages/SMW_PropertyPage.php on line 68, r

Re: [SMW-devel] ask query format=template

2007-11-09 Thread Markus Krötzsch
On Mittwoch, 7. November 2007, Sergey Chernyshev wrote: > Great news that other formats support templates as well. I wonder if you > have templated formatting for tables in plans - I had a use case where > selected property was a URL and all looked very good except for this URL > stretching the tab

Re: [SMW-devel] ask query format=template

2007-11-09 Thread Markus Krötzsch
Did you ever run SMW_refreshData after the import? Plain import does probably bypass SMW's (save) hooks, so that this last part would be needed (twice, as described in INSTALL). SMW's tables are completely determined by the page contents of your wiki, and so they do not need to be imported or

Re: [SMW-devel] ask query format=template

2007-11-09 Thread Markus Krötzsch
On Donnerstag, 8. November 2007, Sergey Chernyshev wrote: > Not sure if it's related to this issue, but I also lost some data in > smw_attributes table (not all of it though). The worst part is that it > didn't reappear after I ran complete SMW_refreshData on the dataset. > I wonder what needs to b

Re: [SMW-devel] ask query format=template

2007-11-08 Thread Sergey Chernyshev
Not sure if it's related to this issue, but I also lost some data in smw_attributes table (not all of it though). The worst part is that it didn't reappear after I ran complete SMW_refreshData on the dataset. I wonder what needs to be done to repopulate SMW tables from scratch? Sergey On

Re: [SMW-devel] ask query format=template

2007-11-08 Thread cnit
> Yes, this appears to be a bug. For a quick workaround, consider using the > formats "list", "ul" or "ol", all of which also support the > template-parameter for formatting (and this one certainly works with SMW1.0). > Note that with list, you can also choose the separator between items > (parame

Re: [SMW-devel] ask query format=template

2007-11-07 Thread Sergey Chernyshev
Great news that other formats support templates as well. I wonder if you have templated formatting for tables in plans - I had a use case where selected property was a URL and all looked very good except for this URL stretching the table badly while it was fine to have the same link text for all of

Re: [SMW-devel] ask query format=template

2007-11-07 Thread Markus Krötzsch
Yes, this appears to be a bug. For a quick workaround, consider using the formats "list", "ul" or "ol", all of which also support the template-parameter for formatting (and this one certainly works with SMW1.0). Note that with list, you can also choose the separator between items (parameter sep

[SMW-devel] ask query format=template

2007-11-07 Thread cnit
Hi! After adding additional priviledges to database (CREATE TEMPORARILY TABLES and DROP), my upgrade seems to work. I wonder, whether these additional priviledges are mentioned in INSTALL file, because older SMW's were happy with just ALTER. But there's some disappointment, my query templates don'