Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 308617 Details for
Bug 450406
harcoded 10M filesize limit
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
changes to StatusBar.py and postr.py
postr.patch (text/plain), 1.35 KB, created by
cje
on 2008-06-07 19:35:43 UTC
(
hide
)
Description:
changes to StatusBar.py and postr.py
Filename:
MIME Type:
Creator:
cje
Created:
2008-06-07 19:35:43 UTC
Size:
1.35 KB
patch
obsolete
>--- StatusBar.py-orig 2008-06-07 20:28:55.000000000 +0100 >+++ StatusBar.py 2008-06-07 20:34:25.000000000 +0100 >@@ -25,6 +25,7 @@ > self.context = self.get_context_id("quota") > self.flickr = flickr > self.quota = None >+ self.maxfile = None > self.to_upload = None > > def __update(self): >@@ -43,6 +44,7 @@ > """Call Flickr to get the current upload quota, and update the status bar.""" > def got_quota(rsp): > self.quota = greek(int(rsp.find("user/bandwidth").get("remainingbytes"))) >+ self.maxfile = int(rsp.find("user/filesize").get("maxmb")) > self.__update() > def error(failure): > dialog = ErrorDialog(self.get_toplevel()) >--- postr.py.orig 2008-06-07 20:29:28.000000000 +0100 >+++ postr.py 2008-06-07 20:18:12.000000000 +0100 >@@ -495,9 +495,9 @@ > > # Check the file size > filesize = os.path.getsize(filename) >- if filesize > 10 * 1024 * 1024: >+ if filesize > self.statusbar.maxfile * 1024 * 1024: > d = ErrorDialog(self.window) >- d.set_from_string("Image %s is too large, images must be no larger than 10MB in size." % filename) >+ d.set_from_string("Image %s is too large, images must be no larger than %dMB in size." % (filename, self.statusbar.maxfile)) > d.show_all() > return >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 450406
: 308617