On Tue, Nov 4, 2008 at 9:16 AM, 13Strider <[EMAIL PROTECTED]> wrote: > > hey , thanks for the code you but out > but i cant seem to make it work it keeps telling me ignore_extensions > is not defined > do i have to define it else where, and can you tell me what line did > you but this in?
Based on the code below, you would define ignore_extensions like this: # Make a list of extensions to ignore ... ignore_extensions = [ ".bin", ".jpg", ".mp3" ] You could put it with the quoted code, or just at the top of the file somewhere. I don't know where the code below was inserted, though; I haven't looked. :) > ignore_extension_found = False > > for extension in ignore_extensions: > > find_return = depot_path.find(extension) > > if find_return != -1: > > debug("Ignored file %s" % depot_path) > > ignore_extension_found = True > > break > > if ignore_extension_found: > > continue > -- Russell Bryant --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "reviewboard" group. To post to this group, send email to reviewboard@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -~----------~----~----~----~------~----~------~--~---