Modify

Opened 8 years ago

Closed 8 years ago

#197 closed defect (fixed)

cannot rename 'foo' to 'hoge/piyo'

Reported by: kato_tatsuya@… Owned by: coderanger
Priority: normal Component: WikiRenameScript
Severity: normal Keywords:
Cc: Trac Release:

Description

when i rename wikipage foo to hoge/piyo, I have this error

# python RenamePage.py foo hoge/piyo /path/to/projenv
Traceback (most recent call last):
  File "RenamePage.py", line 54, in ?
    os.path.join(tracenv, 'attachments/wiki', newname))
OSError: [Errno 2] No such file or directory

I changed the script at line 54 as follows. then successful.

from

os.rename(os.path.join(tracenv, 'attachments/wiki', oldname),
to
os.renames(os.path.join(tracenv, 'attachments/wiki', oldname),

I'm sorry for my bad english.

Thanks

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by coderanger

  • Resolution set to fixed
  • Status changed from new to closed

(In [451]) Changing os.rename() to os.renames(). Closes #197.

Thanks for the tip kato_tatsuya.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from coderanger. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.