Bjorn | 1 Feb 2010 12:05
Picon

patch and suggestion

Hi,
Normally, wp does not allow to drag and drop directories to file storage, I think this is also true for windows.

I changed in line 215 of /lib/pwiki/wikidata/FileStorage.py
if not os.path.isfile(srcPath):
to 
if not (os.path.isfile(srcPath) or os.path.isdir(srcPath)):

now I can drag and drop directories to file storage!
-----------------------------------------------------------
suggestion:
I think it is better if files re actually moved to file storage, rather than copied.
I changed line 74 in /lib/pwiki/OsAbstract.py
shutil.copy2(srcPath, dstPath)
to
shutil.move(srcPath, dstPath)
and files are moved instead of coped to file storage!

cheers,
bjorn

------------------------------------

Michael Butscher | 1 Feb 2010 12:57
Picon
Picon

Re: Exporting to HTML including relatively linked files

On 21.01.2010 17:11, TheMightyPeet wrote:
> I encounter a problem somehow comparable to a problem already described but yet unsolved.
> 
> - version used ist 1.8 final
> - My Wiki contains links to e.g. jpgs and pdfs
> - these links are "relative" (rel://...) which is necessary because the whole wiki is synchronized to
different machines into different drives/paths and such are the files linked
> - "preview" works fine, everything as it should be
> - when exporting (prefered is "sub-tree as set of html-files", but tried the other options as well)
exported html does not contain any pictures, files, or respective links
> - when I choose the export option "display as link" the link is there but is not working
> - files are also not saved to export-folder (in none of the cases tried)
> - problem occurs independent of the location of the export folder (in/out of wiki-folder, different or
same drive,...)
> - when I switch to "absolute" links (file://...) everything is fine, but to reasons explained above this
is not feasible

Relative links are currently not modified when exporting.

Files are only copied to export location if you are using WikidPad 1.9rc
or newer, the link is relative and the links goes into the file storage
(a directory named "files" inside the wiki directory). In this case a
directory "files" is created at export location and files are copied to it.

To copy a file into file storage, drag and drop it from e.g. explorer to
WikidPad editor with CTRL-key pressed. This copies the file and inserts
a relative link to it.

Michael

(Continue reading)

aelilea | 1 Feb 2010 13:22
Picon
Favicon

Feature request: "Code folding" for headers

Hi! Wikidpad is absolutely great, but there is one feature familiar from text editors I'd absolutely
*love* to see:

"Code folding" in edit mode - i.e. a button on the toolbar that allows one to collapse everything apart from
the headers (lines starting with +), and ideally the ability to "unfold" by double clicking a header or such.

Just a suggestion... would this be hard to implement?
Many thanks!

------------------------------------

gf_gollum | 1 Feb 2010 21:35
Picon
Favicon

Re: Feature request: "Code folding" for headers


> "Code folding" in edit mode - i.e. a button on the toolbar that allows one to collapse everything apart from
the headers (lines starting with +),

Its already there- look at Tabs | Show Folding (in v2 at least)

------------------------------------

lancecollins_au | 2 Feb 2010 05:44
Picon

Wikidpad 2.0 blacklist problem

I've started using wikidPad to document a Delphi program and there 
are problems with code fragments.

Lots of Delphi syntax looks like wiki words.   I have tried adding 
these words to the wiki cc. blacklist.  Sometimes I can and all 
instances of a word lose highlighting (as they should).
But sometimes only the first instance is blacklisted and sometimes 
not at all.  Adding to the blacklist works better if I only add one 
word at a time to the list.

If I add [1..12] to the blacklist ( as in     Key: array[1..12] of 
AnsiChar;) there is no effect.

Also blacklisted words remain in the left hand panel.

I'm running wikidPad 2.0beta11 with Windows XP SP3.

------------------------------------

boldxxxx | 2 Feb 2010 10:51
Picon

Re:CsvtableIns.error

Thanks, I made the extension so I'll fix this on the wiki.

Boudewijn.

--- In wikidPad@..., Christian Ziemski <czml1 <at> ...> wrote:
>
> On 18.01.2010 20:52 Graham Harris wrote:
> > 
> > SyntaxError: Non-ASCII character '\xac' in file D:\Program  
> > Files\WikidPad2\user_extensions\CsvTableIns.py on line 26, 
> > but no encoding declared; 
> > 
> > Line 26 reads
> > QUOTED_DELIMITER_SAVE_REPLACE = "¬"
> 
> Writing it this way should help:
> 
> QUOTED_DELIMITER_SAVE_REPLACE = "\xac"
> 
> 
> Christian
>

------------------------------------

aelilea | 2 Feb 2010 14:44
Picon
Favicon

Re: Feature request: "Code folding" for headers


That's brilliant! How could I miss it... Thanks lots!

By the way is there a brief description of subpages anywhere? Wondering whether to install 2.0 is worth it.

--- In wikidPad@..., "gf_gollum" <gf_gollum <at> ...> wrote:
>
> 
> > "Code folding" in edit mode - i.e. a button on the toolbar that allows one to collapse everything apart
from the headers (lines starting with +),
> 
> Its already there- look at Tabs | Show Folding (in v2 at least)
>

------------------------------------

boldxxxx | 2 Feb 2010 16:00
Picon

Re: adding text to a newly created wikipage using hooks

Try the openedWikiWord(docPagePresenter, wikiWord) hook.

Cheers, Boudewijn

--- In wikidPad@..., "Bjorn" <bjornfjohansson <at> ...> wrote:
>
> Hi,
> I tried using hooks to add some text to a new page, specifically it is
> supposed to add the day of the week if the new page has date format
> (yyyy-mm-dd). The text gets added to the "old" page however. How do I
> insert text into the page that was created?
> 
> thanks,
> bjorn
> 
> 
> def newWikiWord(docPagePresenter, wikiWord):
>      import datetime, time
>      try:
>          currentdate = datetime.date(*time.strptime(wikiWord,
> "%Y-%m-%d")[0:3])
>      except ValueError:
>          return
>      dayofWeek = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday',
> 'Saturday', 'Sunday']
>    
> docPagePresenter.getCurrentSubControl().AddText(dayofWeek[datetime.date.\
> weekday(currentdate)])
>

(Continue reading)

L.J. Wolfe | 3 Feb 2010 02:37
Favicon

Re: Re: Tagging in wikidpad

At 01:16 PM 1/31/2010, you wrote:
>You can always try the Tags plugin:
>
>http://trac.wikidpad2.webfactional.com/wiki/TagView
>
>You insert a tag section at the end of each page:
>[tag:one;two;three]
>
>When you, at some other point in your wiki create pages named:
>TagOne you will get a new subpage, that automatically lists all 
>pages, which have the value "one" in their tags.
>You can even create tags for multiple tags:
>TagOneTwo
>Will create a subpage, that has links to all pages having the tag 
>value "one" AND the tag value "two" :)
>
>I hope this helps you. Look at the plugin itself for more information.

OK, maybe I'm just tired, but I can't see why this isn't working. 
Using 2.obeta12 on WinXP.

a) I created a file Tags.py, with the indicated text, in the 
user_extensions folder.
b) I added the text starting with "import sys" to WikidPadHooks.py in 
the extensions folder.
c) I started WikidPad and added "[tag:one;two;three]" to a page (as a 
test, intending to change the tags to something meaningful once I 
knew it worked).
d) I created a page named TagOne.

(Continue reading)

Strikewitch | 3 Feb 2010 09:52

Re: Tagging in wikidpad

With the latest version of the tags plugin, there's no need to modify the WikiPadHooks.py anymore. (at
least I never needed to). I am also using the current version of Wikidpad.

Did Wikidpad tell you that an error occured, when you closed it? You should check Wikidpad's error log.
Maybe it cannot compile the plugin correctly.
When you simply copy the text of the plugin , for some reason three "}" get appended at the end of it, you have to
delete those. Otherwise it won't work.

Well and if that doesn't help, check Wikidpad's error log. You can find it in WikidPad's configuration
directory. If you wanna know where that is, simply open help -> about and scroll down. If that directly
contains an error lofgile (I don't remember the name of the file, but it's only there, if errors occured in
the past), you can open that and look at what the last errors were. They will probably help you identify the
problem as it seems that the plugin doesn't even get "compiled" (as you said: The .pyo file is missing and
wikidpad/python usually generates those for its extensions).

Also you should unroll the changes to your WikidPadHooks.py as they are not needed.

--- In wikidPad@..., "L.J. Wolfe" <ljwolfe <at> ...> wrote:
>
> At 01:16 PM 1/31/2010, you wrote:
> >You can always try the Tags plugin:
> >
> >http://trac.wikidpad2.webfactional.com/wiki/TagView
> >
> >You insert a tag section at the end of each page:
> >[tag:one;two;three]
> >
> >When you, at some other point in your wiki create pages named:
> >TagOne you will get a new subpage, that automatically lists all 
> >pages, which have the value "one" in their tags.
(Continue reading)


Gmane