ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activetcl
activetcl
Re: [Activetcl] TclApp and Tablelist
by Michael Bahr other posts by this author
May 1 2008 10:46AM messages near this date
view in the new Beta List Site
Re: [Activetcl] TclApp and Tablelist | Re: [Activetcl] TclApp and Tablelist
>  As a workaround note that TAP files are plain text, as such 
>  they can be read and modified with any text editor.
>  
>  In AT 8.4.19 the tablelist definitions are around line 320, 
>  or look for 'tablelist::common'.
>  
>  Add the following lines
>  
>  	Package {tablelist 4.9}
>  	See   tablelist::common
>  	Platform *
>  	Desc     {...}
>  
>  This defines 'tablelist' as an alias of 'tablelist::common', 
>  afterward TclApp should find it, with your project unchanged, 
>  i.e. witohut the tablellist to tablelist::common replacement.
>  
>  Or you simply rename 'tablelist::common' to 'tabllelist' in 
>  that tap file.
>  
>  As for how the definitions should have looked like in my 
>  opinion, see the block before line 320, for module 'style'. 
>  You see one hidden definition __style containing the relevant 
>  files, and then all actual (= user visible) style packages 
>  aliased to it.
>  
>  I am currently at a loss why this did not happen for 
>  tablelist. Well, not in general, only in the details. This 
>  file is generated, and I believe that changes to the package 
>  index file are tripping up the generator. This however 
>  requires deeper investigation of the tklib codebase before I 
>  can confirm/reject this hypothesis.
>  

++++++++++++++++++++++++++++++++++++++++++
Ok I renamed tablelist::common to tablelist as in:
# ##################
# Module "tablelist"
# [1]    | "tablelist::common" (4.9)
# -------+

Package {tablelist 4.9}
Platform *
Desc     {Tklib package}

And this wrapped with no errors and my app works just fine!!  Yeppeeeee.

++++++++++++++++++++++++++++++++++++++++++
However, when I add the text you suggested as in:
# #################

# ##################
# Module "tablelist"
# [1]    | "tablelist::common" (4.9)
# -------+

Package {tablelist::common 4.9}
Platform *
Desc     {Tklib package}
Package {tablelist 4.9}
See   __tablelist::common
Platform *
Desc     {...}
Base     @TAP_DIR@/tablelist


It does not wrap.  Here is the error:
 
Issues...
    package 'tablelist' does not provide any files to wrap. (Specified,
Not recoverable)


++++++++++++++++++++++++++++++++++++++++++
Now if I move things around like this:
# ##################
# Module "tablelist"
# [1]    | "tablelist::common" (4.9)
# -------+

Package {tablelist 4.9}
See   __tablelist::common
Platform *
Desc     {...}
Package {tablelist::common 4.9}
Platform *
Desc     {Tklib package}
Base     @TAP_DIR@/tablelist

Whether your block of text is before or after the tablelist::common I
get this error message:

Reading .tap files ...
	Referring unknown package "tablelist::common"
Done
 
Issues...
    package 'tablelist -is package' is not known (Specified, Not
recoverable)
 
++++++++++++++++++++++++++++++++++++++++++
Now I have most of the older Tablelist releases and I noticed that
either Tablelist 4.4 or 4.5 started using the ::common in its
pgkIndex.tcl file.  This is from the author.  I suspect this was due to
the tile enhancements.

Here is my comment/question.  
Removing the ::common from line 326 in the C:\Tcl\lib\tklib0.4\tklib.tap
file works for me. But will it work for others that use tile for
example?  Looking at this .tap file I see that the
tablelist/pkgIndex.tcl file on line 330 is called that would reference
the tablelist::common.  Is this good enough [the mod on line 326] or is
there another reason that line 326 needs to include ::common?  Can
someone confirm this?

I also have noted in the Add Packages list that there are 2 tablelist
entries;
tablelist
tablelist::common


HTH, Mike...
_______________________________________________
ActiveTcl mailing list
ActiveTcl@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Michael Bahr
Andreas Kupries
Michael Bahr
Andreas Kupries
Michael Bahr
Flavio Salgueiro
Michael Bahr
Flavio Salgueiro
Michael Bahr
Andreas Kupries
Michael Bahr
Andreas Kupries
Michael Bahr
Andreas Kupries
Andreas Kupries
Jeff Hobbs
Michael Bahr
Andreas Kupries

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved