FAQ - Frequently Asked Questions
PycasaBadge is a python script that lets you display on your website a badge containing picasa random photos or albums.
1. Why do you have developed a Python application Server-side? I see that you send output by Javascript.. Can't you develop it directly in Javascript?
1. It's not possible to develop PycasaBadge directly in javascript because there is a large limitation in Javascript (AJAX) classes. The XMLHttpRequest class (client-side AJAX class) wants to be in the same domain of the data that it will manage, because I can't access to Google Servers, if me or someone tries to develop it in Javascript: anyone couldn't use it!
2. I want more styles for PycasaBadge, I want to change colors, I want to add text, how can I do?
2. PycasaBadge is always displayed in <div id="pycasabadge"> </div> so you can edit it like you want! Simply edit your CSS style, Example:
<style type="text/css">
div#picasabadge {
color: black;
background-image: url(http://web.dot/bg.jpg);
}
</style>
3. Why PycasaBadge tells me that my totalphotos is less than Max Thumbnails on badge? I've checked that my totalphotos is greater than Value that I put on: Max Thumbnails on badge. How can I do?
3. Simply put a lower "Max Thumbnails on badge" value, (Hoping to make a clear description..)
because PycasaBadge doesn't find all photos randomly but it takes a random value between "1" and your "totalphotos" and it starts to display photos as you specified on "Max Thumbnails on badge". The problem you may have is caused by a code condition to avoid errors:
if (maxresults < (int(totalphotos) - maxresults)):
As you can see it must ensure that you can see always the number of photos specified on "Max Thumbnails on badge", this is needed because for example:
if you have 400photos and you would display 6 thumbnails, without this "check" pycasabadge may choose a number between 1 and 400 to start displaying photos, but if it will choose 399, your badge will display only 2 photos! "399,400" and probably you will receive an error!
In conclusion.. Don't worry! All your photos will be displayed! There is only a little limitation on number of photos displayed!
4. I've found an error/bug what can I do?
4. Simply mail me the problem, together we can correct the errors!
my email address: alezzandro@gmail.com
5. I like PycasaBadge what can I do?
5. Please send me comments/opinions to my email address: alezzandro@gmail.com
NOTE: Picasa is a registered trademark of Google Inc. PycasaBadge is not a partner, affiliate, or licensee of Google Inc., nor is it in any other way formally associated with Google Inc.
Home
News:
- All ok, code updated, maybe this will sove the bandwidth problems. You can now experience some trouble on randomize function of pycasabade, it's all ok, I must force pycasabadge to use a DataStore to store the current display pictures (only an xml file) to not overload the bandwidth.
After one request for badge, pycasabadge will return a different badge only after 5 minutes from the first.
So you will see the same badge for 5 minute also if you try to reload your page.
Everyone who used the function "latest" will not have problems: this new method will not affect you!
Note: The wait time of 5 minutes before updating the badge is only a test, it can be increased or decreased depending on bandwidth usage that we can use from Google.
Note^2: I've also corrected a bug displaying geo-tagged photos.
For more information or doubts, feel free to contact me: <alezzandro_AT_gmail.com> - Google changed its bandwidth quotas, so I've to re-design part of code to use low bandwidth as possible. For now you can experience problems at the end of day when bandwidth quotas are already reached limits. Sorry, I will find a solution in next days, bye!
- Solved another problem on feed's fetching, seems that Google is playing a lot changing it! :-)
- Solved problem displaying thumbnalis caused by some rss changing by PicasaWeb
- New Feature added! You can now choose to display only the latest photos uploaded to picasaweb! Soon you can find other features, thanks to Chris (pycasabadge's user) that suggests me these new features!
read the archives..
Version: 0.9.6
FAQ
Pycasabadge Example
