New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for 'ls' and 'ls -d' argument #30
Comments
I'm not clear on the first issue you listed. newByDynamicClass is the older method from WebGUI 7, and newById was added in WebGUI 8. It should be possible to just use ->new in all cases in WebGUI 7 unless something is broken. Can you describe the problem you can into? The -d option looks good, so I'd like to have that as a separate commit. |
The problem is in wG 7, not wG 8. The code at GitHub uses newById(), I'll look at just using new(). Also, I'll break this into 2 commits (I'm still a Git newbie, so I'm not On 6/15/2012 4:54 PM, Graham Knop wrote:
Mark Leighton Fisher |
In WebGUI 7, you can use either ->new or ->newByDynamicClass. Both will work. The existing code uses newById if it exists (in WebGUI 8) and new otherwise (WebGUI 7). Your proposed change breaks it in WebGUI 8 and doesn't fix anything in WebGUI 7. If you actually ran into a problem with this, I think the real cause lies elsewhere. |
I just figured out where I went wrong -- the current 'ls' only displays Adding the '-d' option should actually help with that case, as it makes Sorry for the confusion -- I'll create a new commit with just the 'ls Mark Leighton Fisher On 6/16/2012 1:59 PM, Graham Knop wrote:
Mark Leighton Fisher |
https://github.com/pbmarklf/wgdev now has only the 'ls -d' commit Thanks for your patience. Mark Leighton Fisher On 6/18/2012 4:22 PM, Mark Leighton Fisher wrote:
Mark Leighton Fisher |
I've fixed 'ls' so you can look up assets by assetId again. (The code had not been updated since WebGUI::Asset->newById() was renamed to WebGUI::Asset->newByDynamicClass().)
I've added a '-d' argument to 'ls', which lists only the specified asset(s) rather than their children (similar to '-d' for ls(1)).
These fixes are in my GitHub repository git@github.com:pbmarklf/wgdev.git.
Graham, would you have preferred these to be 2 separate commits?
The text was updated successfully, but these errors were encountered: