plainblack.com
Username Password
search
Bookmark and Share

    

Thread method overrides method in AssetVersioning

User colink
Date 4/26/2007 4:24 pm
Views 1401
Rating -7    Rate [
|
]
Previous · Next
User Message
colink

Thread has a method to tell if it has been "locked", or set so that no new replies can be added to the thread.

But AssetVersioning.pm also provides an isLocked method, which tells if the Asset is locked for editing.

The Thread method should override the one in the Asset parent class, which means when the Asset checks to see if it is locked for editing, it will return whether or not Posts can be added to it.

I would like to propose that we rename the Thread method to isThreadLocked,  that all instances of Thread based lock checks be renamed to match (Collaboration.pm, Post.pm and any Workflow Activities), and then post a gotcha so that devs who are using this get a heads up about the change in method name.

 



Back to Top
Rate [
|
]
 
 
JT
agreed
On Apr 26, 2007, at 4:24 PM, <ckuskie@sterlink.net> wrote:
colink wrote:

Thread has a method to tell if it has been "locked", or set so that no new replies can be added to the thread.

But AssetVersioning.pm also provides an isLocked method, which tells if the Asset is locked for editing.

The Thread method should override the one in the Asset parent class, which means when the Asset checks to see if it is locked for editing, it will return whether or not Posts can be added to it.

I would like to propose that we rename the Thread method to isThreadLocked,  that all instances of Thread based lock checks be renamed to match (Collaboration.pm, Post.pm and any Workflow Activities), and then post a gotcha so that devs who are using this get a heads up about the change in method name.

 


http://www.plainblack.com/webgui/dev/discuss/thread-method-overrides-method-in-assetversioning

Unsubscribe



-- 
Plain Black&#44; makers of WebGUIhttp://plainblack.com

JT ~ Plain Blackph: 703-286-2525 ext. 810fax: 312-264-5382http://www.plainblack.com
I reject your reality, and substitute my own. ~ Adam Savage





Back to Top
Rate [
|
]
 
 
    



© 2012 Plain Black Corporation | All Rights Reserved